Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > visual c > february 2004 >

visual c : MC++ and native jagged Array


Jannis Linxweiler
2/19/2004 4:36:33 PM
Hi guys!

I'm fairly new to managed C++, so I hope someone can help me.

I've got a Problem with the native C++ types. What I did is using an jagged
array of double in my managed app.

The code looks like this:

double** arr = new double*[1000];
for(int i=0; i<1000; i++)
arr[i] = new double[1000];

In a new console app there was no error if I tried to compile it.

Now I wanted to use this code in a new library project witch i startet.
But in this time the compiler gave my the following errormessage:
MC++ClassLibrary error LNK2001: Nichtaufgelöstes externes Symbol "void *
__cdecl operator new(unsigned int)"

This means something like: Not dispersed external symbol "void * __cdecl
operator new(unsigned int)"

It would help me verry much if someone of you could give me a hint.

In my opinion there is a problem with the sign "new". Maybe I have to
include a library.

Thanx, Jannis

Jannis Linxweiler
2/19/2004 6:15:58 PM
I did it on my own... Thanx anyway....

I aded a Link to the "msvcrt.lib" library...

"Jannis Linxweiler" <J.Linxweiler@gmx.de> schrieb im Newsbeitrag
news:eqqLG6v9DHA.4084@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button