Re: [Dev-C++] undefined reference error?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Zodiaq <zo...@ac...> - 2002-12-14 10:11:44
|
Hello Zachary and all Dev-C++ users, Saturday, December 14, 2002, 9:12:08 AM, Zachary wrote as follows: ZU> Hi, ZU> I created empty project, I added 2 files to it: stack.h and stack.cpp ZU> When I compile I get weird error. It is very obtuse and does not even give ZU> a Line number of the error! Here is error: Hmm... to run ANY project you need an entry point - special function that acts as begining of application... for console apps you need: int main( ) ,and for GUI Apps you need: int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) And if added ONLY these two files it wont run, or compile properly because there is no entry point - I can't see there int main nor winmain... and It looks like you have chosen WinMain project but the code uses std::iostream so you better choose console project... ZU> Zachary Uram ZU> John 3:16 -- regards, Zodiaq |