Link errors

  • Thread starter Ladvánszky Károly
  • Start date
L

Ladvánszky Károly

The following compiles but I get a link error.

typedef struct _point
{
float x, y;
} point;

// ...

point* pts = new point [100];


The following error occurs:

DC_3Daux error LNK2001: unresolved external symbol "void * __cdecl operator
new(unsigned int) ...

Is it a beginner's naive approach to use an old C++ construction under .NET?
Please help.

Károly
 
D

Dan Plimak

A wild guess here, but I suspect there's something horribly wrong with your
linker settings. You seem to be neglecting to link with any unmanaged C++
runtime libraries. I can't be more specific, as I don't have access to your
actual project settings.

-- Dan
 

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