Solved

How to compile C++ static library .. I get these errors

Posted on 2002-03-21
1
466 Views
Last Modified: 2008-01-16
Hi ,

I am trying to compile a c++ program that uses a set of static library files ( they have virtual functions) ..

My program defines a class that derives the static lib class. The program( derived class) defines the virtual funtions in the static library header)

I get the following error
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
api_AR.lib(DebugWindow.obj) : error LNK2001: unresolved external symbol __imp__InitCommonControlsEx@4
test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Can anyone help ??

Thanks
0
Comment
Question by:sunny447492
1 Comment
 
LVL 6

Accepted Solution

by:
thienpnguyen earned 50 total points
ID: 6887194
You need to link with comctl32.lib
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What does std::atomic give me? 7 123
Writing a parser for java language 4 78
Find Visual Studio Tools 2 102
Dynamically allocate memory 9 58
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question