Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 8th March 2004, 13:21   #1
thel
Junior Member
 
Join Date: Mar 2004
Posts: 2
using math-functions in dsp-sdk

hello,

i managed using the dsp-sdk, now i want to calculate
this and that, so i want to use standard math-functions
such as log(), pow() etc. but using these functions in visual c++ 6.0 causes linker error 2001, 'unresolved external symbol: _main'. i include <math.h>, but i guess
i have forgotten a library in the linker-specification?

thank you, thel
thel is offline   Reply With Quote
Old 9th March 2004, 09:02   #2
iKar
Junior Member
 
Join Date: Jan 2004
Posts: 10
Not sure about all of these (since I haven't a development environment here...) but:
+ simple math functions should be in standard C lib
+ others should be in libcmt.lib

Otherwise, sure your link error comes from an undeclared library.

K.
iKar is offline   Reply With Quote
Old 9th March 2004, 10:26   #3
javajunky
Senior Member
 
Join Date: Apr 2001
Posts: 269
The error, surely thats because you're trying to compile an executable there, rather than a dll ?
javajunky is offline   Reply With Quote
Old 9th March 2004, 11:33   #4
thel
Junior Member
 
Join Date: Mar 2004
Posts: 2
i ended up at msdn for ceil()-function. there you find
not only the .h-file, but also the libraries, for ceil() and
other math.h-function, the linker has bind the msvcr.lib (??, not sure).

thanks evon though
thel is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump