Solved

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

Posted on 2002-03-21
1
464 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now