Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 10th, 2005, 02:40 AM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default vc++2003 can't link properly.

Hi all,

I've been stuck with this problem for some time now. Decided to post it up on this forum because I'm getting pretty desperate. Given the following code,
CFLAGS = /I. /Ox /DWIN32 /DLTN_SRC /W3 /EHsc
    cl $(CFLAGS) /c POC.cpp    
    link POC.obj
will not work because there are unresolved symbols. However the following code will work if the lib is explicitly referenced.

CFLAGS = /I. /Ox /DWIN32 /DLTN_SRC /W3 /EHsc
    cl $(CFLAGS) /c POC.cpp    
    link /DEFAULTLIB:user32.lib POC.obj
The lib is there, and link.exe does have permission. I've used libdump and I can see the symbols in there that link is looking for.
I've tried to post this on other forums to no avail, please have a look at this link.

Any help is greatly appreciated.


Old March 15th, 2005, 06:43 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Can you post the exact error produced by the compiler.

Ankur Verma

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Button does not work properly nitinp ASP.NET 2.0 Basics 0 November 9th, 2006 06:02 AM
How could i store a link in a DataRow in VC# 2005? Lalit Pradhan ASP.NET 2.0 Professional 10 June 20th, 2006 12:50 PM
How could i store a link in a DataRow in VC# 2005? Lalit Pradhan C# 2005 0 June 9th, 2006 07:10 AM
VC++ .NET 2003 Windows Forms Designer Problem alphatrak General .NET 0 February 15th, 2006 08:44 PM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.