Author Topic: C++ projects and entry.a  (Read 1800 times)


  • Guest
C++ projects and entry.a
« on: January 28, 2010, 01:43:33 am »

I'm developing with VS2008 and the native SDK. Anyway, I disklike the SDK interface a lot, and I just want to take more control over the machine by writing my own C++ classes to manage everything needed.

The problem indeed is that I simply cannot link against the entry.a library. When I do this, the linker gives me the following error:
1>DemoEngine.obj : error LNK2019: s?mbolo externo __lcd_set_frame sin resolver al que se hace referencia en la funci?n "public: __thiscall MyNamespace::MyEngine::MyEngine(void)" ([email protected]@@[email protected])

Basically, a cannot resolve external symbol error.

I declare the function that way:
extern "C" void _lcd_set_frame(void);

I've looked for a way to link with .a files, and a lot of people on the Internet says that it is not possible to link a .a library against C++ code and see the symbols :( I've searched for a tool to convert .a files to .lib ones but I've finally gave up.

Can somebody tell me how to use entry.a calls in my code? Can I do it by creating some kind of intermediate, pure C, static library that converts all .a entries to __declspec(dllimport) ones?

Thank you very much.


  • *
  • Posts: 283
Re: C++ projects and entry.a
« Reply #1 on: January 28, 2010, 12:09:17 pm »
Download the source for astro-lander which is just in C (not C++) and then just use cpp files with it, they should compile but if you get errors then make sure you include stdcpp in the libs.


Post a new topic
Post a new topic