Hi again, this problem _could_ be related to a 32/64 bit mismatch of your OS and the DLL. Could you make sure the DLL is compatible with your OS? Also, it maybe cannot hurt to remove previous object files - if there are any.
Best, Matthias Am So., 29. Nov. 2020 um 13:55 Uhr schrieb Pablo Frank < [email protected]>: > in Windows7 it works perfect with the syntax i used: > C:\MinGW\bin>g++ oscc_cr_sr_autonomous.cpp libsndfile-1.dll > > > Trying the syntax you say in windows10, i get this: > > C:\MinGW\bin>g++ oscc_cr_sr_autonomous.cpp -l libsndfile-1.dll > > c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: > cannot find -llibsndfile-1.dll > collect2.exe: error: ld returned 1 exit status > ------------------------------ > *From:* music-dsp <[email protected]> on behalf of Matthias > Brandt <[email protected]> > *Sent:* Sunday, November 29, 2020 12:41 PM > *To:* [email protected] <[email protected]> > *Subject:* Re: libsndfile-1.dll: file not recognized: file format not > recognized > > Hi Frank, > > As I see it, you didn't tell gcc that libsndfile-1.dll should be treated > as a dynamic library. Since you didn't use the "-l" option, gcc assumes > that libsndfile-1.dll is a plain-text source code file. Since it is a > binary file, not a plain-text file, gcc has trouble processing it. > > A first reference for you to solve this problem may be > https://stackoverflow.com/questions/17968801/link-against-a-windows-dll-lib-file-combination-with-gcc-under-cygwin/34902737#34902737 > . > > > Good luck, > > Matthias > > Am So., 29. Nov. 2020 um 08:59 Uhr schrieb Pablo Frank < > [email protected]>: > > > Hello all, > when calling libsndfile in windows10 64 bit (installation from mega-nerd) > I get this message: > > libsndfile-1.dll: file not recognized: file format not recognized > collect2.exe: error: ld returned 1 exit status > > The compiler used is MinGW and works fine. > I didn't find any useful answer with google. what to do? > Please help! > > > > > > >
