Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / December 2004

Tip: Looking for answers? Try searching our database.

Setting the Link Order of Libraries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cps - 10 Dec 2004 21:57 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.