[EMAIL PROTECTED] schrieb:
> dear all:
>     i am a programmer from China, i use sqlite in my project. 
>     from sqlite, i know lemon.
>     i work on windows, using vc6.0,  i am trying to do something using lemon, 
> but i have some issues.
>     i write  a my_calculator.y file, and generate my_calculator.c and 
> my_calculator.h file from the my_calculator.y file, i rename file name from 
> my_calculator.c to my_calculator.cpp.
>     when i  add the files(.h and .cpp) to my project, i find it could not be 
> compiled.
>
>     error message:
> MyCal.obj : error LNK2001: unresolved external symbol _PtCalculatorParser
> MyCal.obj : error LNK2001: unresolved external symbol _PtCalculatorParserFree
> MyCal.obj : error LNK2001: unresolved external symbol _PtCalculatorParserAlloc
> but , in my_calculator.cpp, i have define the the function 
> PtCalculatorParser....
> what't wrong? who can help me?
>  thanks.
>   
learn about c++ name mangling and about the extern "C" declaration.

regards,
gunnar


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to