Pelles C forum

Pelles C => General discussions => Topic started by: Caecigenus on September 05, 2006, 04:42:40 PM

Title: [Solved] DLL exports problem
Post by: Caecigenus 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?

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