472,096 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

unresloved external when using struct and new operator

I get a unresolved external error when linking this code. Does anybody know

namespace TestDll
__gc class Class1

namespace TestDll
__nogc struct MyStruct
int i;
double j;

MyStruct *pStruct = __nogc new MyStruct();

Thanks in advance

Nov 16 '05 #1
1 1588

From: "Henke" <he********@hotmail.com>
Subject: unresloved external when using struct and new operator
Date: Fri, 17 Oct 2003 11:27:38 +0200
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Oz**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vc
NNTP-Posting-Host: 62-20-34-22.customer.telia.com
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29514
X-Tomcat-NG: microsoft.public.dotnet.languages.vc

I get a unresolved external error when linking this code. Does anybody know why?
<code removed>
Thanks in advance


I assume you're building a .Net Class Library with VS .Net 2003. The
reason for the unresolved external is that your project is not being linked
with the CRT. For more information on why this is the case and how to link
to the CRT, please see the following articles:


Arjun Bijanki, Microsoft Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by anonymous | last post: by
12 posts views Thread by aaragon | last post: by
reply views Thread by leo001 | 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.