Hello, Iam being to compile speexenc but I have the following error: LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol _spx_cos Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Please, help me Guillaume --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi, Are you using the latest version? Maybe your compiler doesn't support "inline" (try doing a "#define inline"). Otherwise, I'm not familiar with these error messages. Jean-Marc Le lun 29/03/2004 à 10:02, Guillaume ROGET a écrit :> Hello, > Iam being to compile speexenc but I have the following error: > > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other > libs; use /NODEFAULTLIB:library > libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol > _spx_cos > Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externals > Error executing link.exe. > > Please, help me > Guillaume > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered.-- Jean-Marc Valin http://www.xiph.org/~jm/ LABORIUS Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040329/5dbedc1f/signature-0001.pgp
----- Original Message ----- From: "Guillaume ROGET" <guillaume.roget@fr.thalesgroup.com> To: <speex-dev@xiph.org> Sent: Monday, March 29, 2004 11:02 PM Subject: [speex-dev] compile speexenc <p>> Hello,> Iam being to compile speexenc but I have the following error: > > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other > libs; use /NODEFAULTLIB:libraryThis is because you are linking different types of library LIBC (MT=Multithreaded) (D=Debug) In the propeerties are you linknig to "Multi threaded Debug" or are you manually including this file ? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT ML/lnk4098.asp> libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol > _spx_cos > Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externalsThis is what is stopping your build... it is either : 1) The function spx_cos doesn't exist, 2) Are you building libspeex as a dll or a static library... if it's a dll, check the .def file to find this function. 3) Visual studio is compiling as C not C++... it's in properties somewhere. here's a whole list of things that can cause it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT ML/lnk4098.asp I jsut looked at the newer code...i have no compiler installed at the moment... i'm just rebuilding my system... but looking in the code... i'm guess it's this one. <p>"Only global functions and variables are public. Functions declared with the static modifier (link : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/ht ml/_error_the_symbol_is_not_public.asp) by definition have file scope. Static variables have the same limitation. Trying to access any static variables from outside of the file in which they are declared can result in a compile error or LNK2001. ">From just looking though.. i can't see where speexenc calls this function.<p><p><p><p><p><p><p>This is> Error executing link.exe. > > Please, help me > Guillaume > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to'speex-dev-request@xiph.org'> containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. > > ><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Ummm... that should say above "Compiling as C++ not C ! ----- Original Message ----- From: "illiminable" <ogg@illiminable.com> To: <speex-dev@xiph.org> Sent: Tuesday, March 30, 2004 2:07 AM Subject: Re: [speex-dev] compile speexenc <p>>> ----- Original Message ----- > From: "Guillaume ROGET" <guillaume.roget@fr.thalesgroup.com> > To: <speex-dev@xiph.org> > Sent: Monday, March 29, 2004 11:02 PM > Subject: [speex-dev] compile speexenc > > > > Hello, > > Iam being to compile speexenc but I have the following error: > > > > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other > > libs; use /NODEFAULTLIB:library > > This is because you are linking different types of library LIBC > (MT=Multithreaded) (D=Debug) > > In the propeerties are you linknig to "Multi threaded Debug" or are you > manually including this file ? > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT> ML/lnk4098.asp > > > libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol > > _spx_cos > > Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externals > > This is what is stopping your build... it is either : > > 1) The function spx_cos doesn't exist, > 2) Are you building libspeex as a dll or a static library... if it's adll,> check the .def file to find this function. > 3) Visual studio is compiling as C not C++... it's in propertiessomewhere.> > here's a whole list of things that can cause it. >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HT> ML/lnk4098.asp > > I jsut looked at the newer code...i have no compiler installed at the > moment... i'm just rebuilding my system... but looking in the code... i'm > guess it's this one. > > > "Only global functions and variables are public. > Functions declared with the static modifier (link : >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/ht> ml/_error_the_symbol_is_not_public.asp) by definition have file scope. > Static variables have the same limitation. Trying to access any static > variables from outside of the file in which they are declared can resultin> a compile error or LNK2001. " > > >From just looking though.. i can't see where speexenc calls thisfunction.> > > > > > > > > This is > > Error executing link.exe. > > > > Please, help me > > Guillaume > > > > --- >8 ---- > > List archives: http://www.xiph.org/archives/ > > Ogg project homepage: http://www.xiph.org/ogg/ > > To unsubscribe from this list, send a message to > 'speex-dev-request@xiph.org' > > containing only the word 'unsubscribe' in the body. No subject isneeded.> > Unsubscribe messages sent to the list will be ignored/filtered. > > > > > > > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to'speex-dev-request@xiph.org'> containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. > ><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi, This is probably a visual c++ problem, right? Under the link/input tab of your project settings you probably need to add: msvcrtd.lib,msvcrt.lib (for debug, release respectively) to the ignore libraries section. Under your C++ code generation section you probably need to make sure Debug Multithreaded/Multithreaded is selected, also, under run time library tab of project settings. Hope that helps, Tom At 07:02 AM 3/29/2004, Guillaume ROGET wrote:>Hello, >Iam being to compile speexenc but I have the following error: > >LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other >libs; use /NODEFAULTLIB:library >libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol >_spx_cos >Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externals >Error executing link.exe. > >Please, help me >Guillaume > >--- >8 ---- >List archives: http://www.xiph.org/archives/ >Ogg project homepage: http://www.xiph.org/ogg/ >To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' >containing only the word 'unsubscribe' in the body. No subject is needed. >Unsubscribe messages sent to the list will be ignored/filtered.-- Tom Harper - tharper@sightspeed.com Lead Software Engineer SightSpeed - A Roda Group Affiliated Company 918 Parker St, Suite A14 Berkeley, CA 94710 Phone: 510.665.2920 Cell: 415.378.3779 http://www.sightspeed.com <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.