Hi,
I'm writing a .dll in VS.NET 2003.
I've got a problem getting the .dll to link. The answer appears to lie in
the order that the libraries link:
> The fix is very simple, just do the following.
>
> - Select BUILD|SETTINGS
> - In the left hand pane highlight WIN32 Debug
> - Go to the LINK tab
> - Select the INPUT 'category'
> - in the edit box labeled "Ignore Libraries"
type the following two libs
> MSVCRTD.lib, mfcs42d.lib (order doesn't matter _here_)
> - Now in the edit box labeled "Object/Library Modules" type the following two libs
> mfcs42d.lib, MSVCRTD.lib
> MAKE SURE THEY ARE IN THIS ORDER AND THEY ARE LISTED AS THE
FIRST & SECOND LIBS IN THE EDIT BOX
> rebuild and all should be fine. Basically what you did was tell
>the linker to skip the implied inclusion of these libs, and then manually
>told it to include them in the specific order mentioned.
I can set the "Ignore Libraries" OK but I can't where to set the
"Object/Library Modules".
Where do I do this in VS.NET 2003?
Cheers,
Chris
JetStream - 14 Dec 2004 21:45 GMT
Are you using a Solution? If so, you can right click on the solution from
the Solution Explorer and set dependencies...This will allow you to control
the build order of the solution.
> Hi,
>
[quoted text clipped - 29 lines]
>
> Chris