• Advertisement

Archived

This topic is now archived and is closed to further replies.

Which library (.h) contains delete? c/c++

This topic is 5234 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
No header file (it''s a header file, not a library) defines delete. It''s built into the language. It''s a keyword, not a function.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Mmm, ok.
My compiler won't recognize it anyway. I use gcc

`delete' undeclared (first use in this function)

Any idea?

EDIT: This is where it gives me error

delete [] g_3DModel.pObject.pFaces;

[edited by - Tompa on October 22, 2003 3:57:46 AM]

Share this post


Link to post
Share on other sites
Well don''t use gcc. Use its g++ name (though either name can be used to compile either language, the g++ name links the right libraries automagically, gcc does not). And make sure that your file is written in C++. There is no such language as "C/C++".

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Try g++ instead of gcc to get a C++ compiler.

Share this post


Link to post
Share on other sites

  • Advertisement