Solved

Need main defined when linking ActiveX control?

Posted on 1998-09-22
1
172 Views
Last Modified: 2010-08-05
I've written an ActiveX control (Visual C++ 5.0, Windows NT) and it compiles and links fine in the debug version. But when I try to link the release version the linker claims the symbol __main is undefined (reference from LIBC.lib(crt0.obj)). Any idea what is going on? I don't think I need to define a main procedure in an ActiveX control, do I?
0
Comment
Question by:webb
1 Comment
 
LVL 3

Accepted Solution

by:
xyu earned 200 total points
ID: 1173466
It's known problem if You link with libc.lib (e.g. You want to use static single threaded run-time) You can easily solve it by adding  "void main() {}" into any of Your cpp file. It never be called anyway... Or You can solve it by using other Run-time libs like Multithreaded DLL... but adding void main().. is most simple amd effcctive solution...
Good luck
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

747 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

8 Experts available now in Live!

Get 1:1 Help Now