Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need main defined when linking ActiveX control?

Posted on 1998-09-22
1
Medium Priority
?
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
xyu earned 800 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

670 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