MC++ and native jagged Array

J

Jannis Linxweiler

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 = 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
 
J

Jannis Linxweiler

I did it on my own... Thanx anyway....

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top