PDA

View Full Version : using math-functions in dsp-sdk


thel
8th March 2004, 13:21
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

iKar
9th March 2004, 09:02
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.

javajunky
9th March 2004, 10:26
The error, surely thats because you're trying to compile an executable there, rather than a dll ?

thel
9th March 2004, 11:33
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