471,123 Members | 873 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

problem while wrapping unmanaged c++ code in managed c++


I have created a unmanaged class in a header file UnManaged.h

class UnManaged
void HelloWorld(){}

I also created a .Net C++ class library to wrap this class and included the
header file "UnManaged.h" .

The Managed wrapper class definition follows,

__gc class ManagedClass

public ManagedClass()
m_objClass = new UnManaged()

deelte m_objClass;


UnManaged* m_objClass;

while building the class library code in .Net i am getting the following error

error LNK2019: unresolved external symbol _main referenced in function

Could anyone tell met why this linker error came and how to reolve this issue?

Thanks in advance

Jul 21 '05 #1
0 1062

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Kantowitz | last post: by
reply views Thread by Arthur Roodenburg | last post: by
4 posts views Thread by CristianMori | last post: by
8 posts views Thread by Nadav | last post: by
1 post views Thread by jsroberts | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.