Author Topic: [Solved] DLL exports problem  (Read 2195 times)


  • Guest
[Solved] DLL exports problem
« on: September 05, 2006, 04:42:40 pm »
I'm trying to make a DLL with Pelles, but I'm encounting some troubles...

If I declare a function "__declspec(dllexport) int Test( void )" it will be exported as "_Test@0", and not "Test" as I'd like to.

Ofcourse I could do a .def-file and manually declare ALL my exports, but that's just time consuming, and doing the job twice.
What am I doing wrong?

I found the solution in another thread. Using the -Gn switch for the compiler solves my issue... Thanks. :)