From: SourceForge.net <no...@so...> - 2005-03-18 17:59:15
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3055367 By: noob16 //one example of how it does not work #include<allegro.h> struct x { }; int main(int argc, char** argv) { x *y; y=new x[20]; } END_OF_MAIN(); //End of the code //here is the error-output test.cpp:12:15: warning no newline at end of file C:\WINDOWS\TEMP/ccMePjgb.o(.text+0xe):test.cpp: undefined reference to `new[](unsigned int)´ collect2: ld returned 1 exit status furthermore I want to add that the warning "no newline...." is non important, I just added it. As to the code: I compiled this with the stdc++ library already it worked. I get the same error with all other new or delete operations. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |