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

Started by
4 comments, last by Tompa 20 years, 6 months ago
Can anyone tell me that please? My mind just went blank. Thanks!
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.
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]
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++".
char a[99999],*p=a;int main(int c,char**V){char*v=c>0?1[V]:(char*)V;if(c>=0)for(;*v&&93!=*v;){62==*v&&++p||60==*v&&--p||43==*v&&++*p||45==*v&&--*p||44==*v&&(*p=getchar())||46==*v&&putchar(*p)||91==*v&&(*p&&main(0,(char**)(--v+2))||(v=(char*)main(-1,(char**)++v)-1));++v;}else for(c=1;c;c+=(91==*v)-(93==*v),++v);return(int)v;}  /*** drpizza@battleaxe.net ***/
Try g++ instead of gcc to get a C++ compiler.
Ahh... thats an idea...
Thanks!

This topic is closed to new replies.

Advertisement