0
0

hello

i’m currently trying to tweak a bit the source of minifmod for my own purpose, as i said in a former post.

in the documentation its written that if i do my own libs i have to provide the
dbl pow(dbl, dbl) function. thats ok.

my maths lib is in asm with functions declarted as extern “C” double…. so is pow.
the asm (for pow i have global _pow@16 ….)is compiled with nasm, the C is compiled with VC++6.

and at the compilation of minifmod.lib it refuses always my “C” after the extern (?) and i dont understand why.

if i remove the “C”, it says the __CIpow is undeclared….yes but now how can i experiment the code with my own maths functions ?

i’m definitely not a good enough compilation wizard :smile:, so if someone could help me on this subject..

thanks

<m>

  • You must to post comments
0
0

sounds to me like a pretty basic issue of mixing C++ and C. Your "extern "C" " code is probably getting included by a .c program, and it will reject it. It should read something like:

ifdef __cplusplus

extern "C"
{

endif

double pow(double,double);
/* insert other prototypes here */

ifdef __cplusplus

}

endif

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.