User forums > Help
New installation...not working properly
marcdan221:
and it always says "Compiler : GNU GCC Compiler (called directly)" ?? Is that ok?
marcdan221:
ok....I think there might be a bug there. I went in the menu in Projects\Build Options and from there selected Borland C++ 5.5 and walk through the options. I then "Cancel" and recompile....here are my new results.
Project : Console application
Compiler : Borland C++ Compiler 5.5 (using GNU "make")
Directory : C:\Borland\BCC55\Projects\test\
--------------------------------------------------------------------------------
Cleaning target "default"...
rm -f C:/Borland/BCC55/Projects/test/console.exe .objs/main.o
Calculating dependencies for "main.cpp"...
mingw32-g++.exe -MM -MF .deps/main.d -MT .objs/main.o -IC:/Program\ Files/CodeBlocks/include main.cpp
Compiling "main.cpp"...
mingw32-g++.exe -IC:/Program\ Files/CodeBlocks/include -c main.cpp -o .objs/main.o
main.cpp: In function `bool ConnectAndSend(char*, char*, long int)':
main.cpp:220: error: expected primary-expression before "long"
main.cpp:220: error: integer constant is too large for "long" type
main.cpp: In function `void WaitForIncomming()':
main.cpp:270: warning: converting of negative value `-0x000000001' to `SOCKET'
main.cpp: In function `long long int GetFilesize(char*)':
main.cpp:348: warning: passing NULL used for non-pointer converting 3 of `void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
main.cpp:348: warning: passing NULL used for non-pointer converting 6 of `void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
main.cpp:352: error: expected primary-expression before "long"
main.cpp:352: error: expected `;' before "long"
main.cpp:352: error: expected primary-expression before "long"
main.cpp:352: error: expected `;' before "long"
main.cpp:356: error: `GetFileSizeEx' undeclared (first use this function)
main.cpp:356: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:360: error: expected primary-expression before "long"
main.cpp:360: error: expected `;' before "long"
main.cpp:360: error: expected primary-expression before "long"
main.cpp:360: error: expected `;' before "long"
main.cpp:364: error: expected primary-expression before "long"
main.cpp:364: error: expected `;' before "long"
main.cpp:364: error: expected primary-expression before "long"
main.cpp:364: error: expected `;' before "long"
mingw32-make.exe: *** [.objs/main.o] Error 1
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
From what I got there, what should I do to configure my C::B to work with Borland as it's working under the command line?
MortenMacFly:
--- Quote from: marcdan221 on November 17, 2005, 09:26:12 pm ---ok....I think there might be a bug there.mingw32-g++.exe -MM -MF .deps/main.d -MT .objs/main.o -IC:/Program\ Files/CodeBlocks/include main.cpp
--- End quote ---
You were very fast... :lol: What I said was wrong - it was MY mistake... sorry. I did forget (indeed) to setup the include and library path correctly in the Borland C++ compiler setup.
--- Quote ---Compiling "main.cpp"...
mingw32-g++.exe -IC:/Program\ Files/CodeBlocks/include -c main.cpp -o .objs/main.o
mingw32-make.exe: *** [.objs/main.o] Error 1
--- End quote ---
You are using the wrong (GCC) compiler. It has to be setup in the project's build options as well: Right click on the project, select "Properties" and then the button "Project's build options". There you have to select the compiler. it's not enough to setup the compiler under "settings". You can have a different compiler for each project. Please try again.
Morten.
MortenMacFly:
Please also see: http://forums.codeblocks.org/index.php?topic=425
Morten.
MortenMacFly:
I've prepared a hello-world project for you. Find it attached. Ones you have setup the Compiler correctly, this should work. Please note that you have to setup the "[YOUR_BC55_DIR]\Lib" AND "[YOUR_BC55_DIR]\Lib\PSDK" in the compiler setup. otherwise the platform (kernel32 and user32) libs are missing.
Morten.
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version