Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: user101 on June 04, 2011, 09:53:59 pm

Title: Using .def files
Post by: user101 on June 04, 2011, 09:53:59 pm
Hello. I am working on cross platform C library, which defines a group of functions, however it doesn't need to export all of them. AFAIK using .def file is a right way since __declspec (dllexport) is microsoft specific. The problem is that I cannot make C::b using this .def file in linking settings via --def=export.def or -Wl,-def=export. Is there c::b specific way of using .def files?
Title: Re: Using .def files
Post by: MortenMacFly on June 05, 2011, 10:39:24 am
Is there c::b specific way of using .def files?
No. If in doubt, you should first try at the command line to find the right syntax and then transfer the settings to the C::B project. Most likely you are using a wrong syntax, your working directory might be wrong or you have put the flag in the wrong place (take care to differ between linker and compiler options!).