[Dev-C++] First experience with Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jilani K. <ji...@ti...> - 2002-01-20 11:29:10
|
Hi All,
I have downloaded MingW, installed it and it works fine from command
line.
I have already installed Dev-C++ (compiled from source) and it seems to
work fine too.
I have created a new project (myproject.dev) with this single unit:
// b.cpp
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello Dev-C++");
return 0;
}
//
Well; from command line: g++ b.cpp it compiles and create a.exe
correctly. But from Dev-C++ I have just this list of errors:
c:\mingw\bin\ld.exe: warning: cannot find entry symbol _mainCRTStartup;
defaulting to 00401000
c:\a2\b.o(.text+0x17)://c/a2/b.cpp: undefined reference to `__main'
c:\a2\b.o(.text+0x24)://c/a2/b.cpp: undefined reference to `printf'
What am I missing?
- I have installed MingW at c:\mingw
- Dev-C++ is configuraed this way:
- bin directory: c:\mingw\bin\
- C include files c:\mingw\include\
- C++ include files c:\mingw\include\
- Libraries directory c:\mingw\lib\
- OS: W2k
Thanks a lot!
--
Jilani Khaldi
http://space.tin.it/scuola/jkhaldi
|