User forums > Help
New installation...not working properly
marcdan221:
Hi all, I'm new to this forum and new to C::B. :)
I need help with my installation. I'm using BCC55 but I'm not able to use correctly with C::B.
Everytime I compile my sources, this is what I get...
Project : Console application
Compiler : GNU GCC Compiler (called directly) <------------------------ Is that normal?? I set Borland to be the default compiler.
Directory : C:\Borland\BCC55\CodeBlocks\Test\
--------------------------------------------------------------------------------
Compiling: ..\..\Projects\transfer.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
..\..\Projects\transfer.cpp:
And the following....
Linking console executable: ..\..\Projects\transfer.exe
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '___CRTL_VCL_Init' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_MEM_UseBorMM' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_VCLLIB_Linkage' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__ExceptInit' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetModuleHandleA' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__startup' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__GetExceptDLLinfoInternal' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapAlloc' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_SetValue' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_InitThread' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Alloc' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_GetValue' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetProcessHeap' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapFree' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_ExitThread' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Free' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'WSAStartup' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'WSACleanup' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external '_printf' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'socket' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'WSAGetLastError' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external '_strcpy' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'inet_addr' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'htons' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external 'connect' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
...
Now this is what I get if I compile from command line....
C:\Borland\BCC55\Projects>bcc transfer
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
transfer.cpp:
transfer.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
I've tried to install both version of C::B (with or w/o GNU GCC compiler) and both are giving me the same errors.
Please help me, what's wrong? :(
Thanks.
MortenMacFly:
--- Quote from: marcdan221 on November 17, 2005, 06:33:00 pm ---Error: Unresolved external 'WSAStartup' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
Error: Unresolved external '_printf' referenced from C:\BORLAND\BCC55\PROJECTS\TRANSFER.OBJ
--- End quote ---
Seems you are missing linking against quite a few Windows libraries. Could you post the whole command line used for compiling/linking? (Enable Settings -> Compiler -> Other -> Compiler Logging: Full command line.
Morten.
marcdan221:
Ok, I think I know what I'm doing wrong. I'm triyng to compile the file only and not the project.
I have created a new project and include my tranfer.cpp source in it....now I'm having new errors...
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"
Process terminated with status 1 (0 minutes, 1 seconds)
16 errors, 3 warnings
I've set the option for the compiler (Enable Settings -> Compiler -> Other -> Compiler Logging: Full command line).
Normally, when I compile a .cpp source with the Borland Compiler, I simply....
C:\Borland\BCC55\Projects>bcc32 transfer.cpp <------------------This is the command line I use to compile my programs (bcc32.exe)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
transfer.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
...and everything is fine. No errors and .exe is created.
I tried to modify the macros in the "Advanced Compiler Options" so it only use $compiler $file....same thing going on.
Escuse me if I don't elaborate more....bcc32.exe does the job for me I guess (compiling + linking).
MortenMacFly:
--- Quote from: marcdan221 on November 17, 2005, 08:04:38 pm ---I've set the option for the compiler (Enable Settings -> Compiler -> Other -> Compiler Logging: Full command line).
--- End quote ---
Could you please post the full compiler build log then? It is important to see full commandline provided to the compiler.
Morten.
marcdan221:
Here is the full build log.... :( (it doesn't give me the command line it uses)
Project : Console application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Borland\BCC55\Projects\Transfer project\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: ..\transfer.cpp
..\transfer.cpp: In function `bool ConnectAndSend(char*, char*, long int)':
..\transfer.cpp:220: error: expected primary-expression before "long"
..\transfer.cpp:220: error: integer constant is too large for "long" type
..\transfer.cpp: In function `void WaitForIncomming()':
..\transfer.cpp:270: warning: converting of negative value `-0x000000001' to `SOCKET'
..\transfer.cpp: In function `long long int GetFilesize(char*)':
..\transfer.cpp:348: warning: passing NULL used for non-pointer converting 3 of `void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
..\transfer.cpp:348: warning: passing NULL used for non-pointer converting 6 of `void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
..\transfer.cpp:352: error: expected primary-expression before "long"
..\transfer.cpp:352: error: expected `;' before "long"
..\transfer.cpp:352: error: expected primary-expression before "long"
..\transfer.cpp:352: error: expected `;' before "long"
..\transfer.cpp:356: error: `GetFileSizeEx' undeclared (first use this function)
..\transfer.cpp:356: error: (Each undeclared identifier is reported only once for each function it appears in.)
..\transfer.cpp:360: error: expected primary-expression before "long"
..\transfer.cpp:360: error: expected `;' before "long"
..\transfer.cpp:360: error: expected primary-expression before "long"
..\transfer.cpp:360: error: expected `;' before "long"
..\transfer.cpp:364: error: expected primary-expression before "long"
..\transfer.cpp:364: error: expected `;' before "long"
..\transfer.cpp:364: error: expected primary-expression before "long"
..\transfer.cpp:364: error: expected `;' before "long"
Process terminated with status 1 (0 minutes, 1 seconds)
16 errors, 3 warnings
I would like to include some screenshot..but I don't know how yet :?
Navigation
[0] Message Index
[#] Next page
Go to full version