Creating DLL's for use with MSVC

2004-03-10 Thread Niklas Wallin
We are currently porting a linux C++ project to windows. The project consists of several dll's (or .so's). To recreate those dll's in Windows it seems like you have to add a lot of __cdecls definitions or use a definitions file. Neither method is appealing to us. So, I read somewhere that

Re: Creating DLL's for use with MSVC

2004-03-10 Thread Niklas Wallin
Thanks for your answer Alejandro, I still can't get it right though. class MyClass { public: MyClass(); ~MyClass(); int getValue(); void setValue(int val); private: int value_; }; Try: cc++ -shared -mno-cygwin -o mydll.dll mydll.cpp \ -Wl,--out-implib=mydll.lib \