Hi,
I tried to compile your code with my Dev-C++ 4.0 on Win98SE, and I had no
problem.
My Dev-C++ has been installed using the archive available from the Dev-C++
site (in other words I'm using the binary files that the author has prepared)
The project type that I used is "console application" and my configuration
is exactly the one that you use:
- bin directory: c:\mingw\bin\
- C include files c:\mingw\include\
- C++ include files c:\mingw\include\
- Libraries directory c:\mingw\lib\
By the way, I suggest you change the "C++ include files" so that it becomes:
"c:\mingw\include\g++;c:\mingw\include\", because some of the header files
for C++ are in the "\g++" subdirectory. This is not the problem in your
case, as your code uses only the C subset of C++.
At 12:27 20/01/02 +0100, Jilani Khaldi wrote:
>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
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
Luigi
gi...@li...
|