Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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