Yes, I was just point out that the differences between the two may be leading to the difference of understanding between you and Elysia.
Printable View
Yes, I was just point out that the differences between the two may be leading to the difference of understanding between you and Elysia.
Actually extern is partially marking whatever you used it on as a declaration.
But that aside, I've finally been able to compile a DLL using a ".a" lib file but now I can't get an MSVC DLL to use my MinGW/GCC created DLL (won't link, says unresolved symbols!) Any ideas?
Untrue. Declarations do not need "extern."
I really don't know. GCC does a lot of weird stuff.Quote:
But that aside, I've finally been able to compile a DLL using a ".a" lib file but now I can't get an MSVC DLL to use my MinGW/GCC created DLL (won't link, says unresolved symbols!) Any ideas?
Visual Studio makes it all simple if you compile the DLL in Visual Studio, however.
You can just link the projects in the solution.
extern can be used with functions, but I'm pretty sure the only time you'd need to do it is if you're specifying extern "C" func();
http://msdn2.microsoft.com/en-us/lib...9d(VS.80).aspx