Skip to content

can't compile any code using the api. #924

Answered by derselbst
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

You're using pure mingw32: a 32-bit compiler which creates a 32-bit object file and then you want to link against 64-bit libfluidsynth by using a 32-bit linker from 32-bit binutils package, which only supports i386 targets, see mingw32/bin/ld.exe --help. That doesn't work. Get mingw32-w64 and gcc getaudiosamples.c -Lfluidsynth-x64/lib/ -lfluidsynth -o test will work.

Also bad: you're mixing up libraries from at least two mingw locations: c:/mingw/ and C:\Program Files (x86)\CodeBlocks\MinGW.

Replies: 3 comments 19 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
15 replies
@mawe42
Comment options

@ghost
Comment options

@mawe42
Comment options

@ghost
Comment options

@mawe42
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants