Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / December 2004

Tip: Looking for answers? Try searching our database.

Link Error in a Class Library(.Net) project of Visual C++ .Net stu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jim - 15 Dec 2004 20:25 GMT
Hi All,
I built a class library(.net) project using Visual C++ .Net studio. If I use
following statement:
unsigned int* p = new unsigned int[2];

It was compiled successfully, but the Link error occured as following:

error LNK2001: unresolved external symbol "void * __cdecl operator
new(unsigned int)" (??2@$$FYAPAXI@Z)

Anybody have any idear would be appreciated!

Thanks in advance!
Jim
Nikola Dudar [MSFT] - 17 Dec 2004 03:47 GMT
You are not linking with CRT library.  I would recommend you to read this
article http://support.microsoft.com/?id=814472, that talks in details on
how to build class library in VC++ .Net.

Thanks,
Nikola

Signature

Nikola Dudar
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.

> Hi All,
> I built a class library(.net) project using Visual C++ .Net studio. If I
[quoted text clipped - 11 lines]
> Thanks in advance!
> Jim

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.