News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

begginer having hard time with "hello world"

Started by MegaManZZ, December 03, 2007, 12:03:29 AM

Previous topic - Next topic

MegaManZZ

trying to compile and run "hello world" script.. im using the default "hello world" script that you get when starting a new peoject.
i get this error:


Project   : Console application
Compiler  : Borland C++ Compiler 5.5 (called directly)
Directory : C:\CBProjects\
--------------------------------------------------------------------------------
Switching to target: default
Linking console executable: C:\CBProjects\HelloWorld.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 'std::basic_ostream<char, std::char_traits<char> >::put(char)' referenced from C:\CBPROJECTS\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >::flush()' referenced from C:\CBPROJECTS\.OBJS\MAIN.O
Error: Unresolved external 'std::cout' referenced from C:\CBPROJECTS\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >& std::operator <<(std::basic_ostream<char, std::char_traits<char> >&, const char *)' referenced from C:\CBPROJECTS\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >::operator <<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))' referenced from C:\CBPROJECTS\.OBJS\MAIN.O
Error: Unresolved external '__matherr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__matherrl' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fmode' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__argv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__wargv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_setargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_exitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wsetargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wexitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fileinfo' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setargv__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setenvp__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__turboFloat' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


please help me out.. ive been meaning to beggin learning programming and i heard code:blocks is a good start.

MegaManZZ

is there a reason why no ones answering? or does no one know the solution to my problem :(

MortenMacFly

Quote from: MegaManZZ on December 03, 2007, 03:14:38 PM
is there a reason why no ones answering? or does no one know the solution to my problem :(
Enable full compiler log (see my sig) and post the log again, please.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MegaManZZ

i hope im following the proper steps and posting the proper lines.

Project   : Console application
Compiler  : Borland C++ Compiler 5.5 (called directly)
Directory : C:\cppp\
--------------------------------------------------------------------------------
Switching to target: default
ilink32.exe -ap        -L"C:\Borland\BCC55\lib" c0x32 .objs\main.o ,"C:\cppp\console.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 'std::basic_ostream<char, std::char_traits<char> >::put(char)' referenced from C:\CPPP\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >::flush()' referenced from C:\CPPP\.OBJS\MAIN.O
Error: Unresolved external 'std::cout' referenced from C:\CPPP\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >& std::operator <<(std::basic_ostream<char, std::char_traits<char> >&, const char *)' referenced from C:\CPPP\.OBJS\MAIN.O
Error: Unresolved external 'std::basic_ostream<char, std::char_traits<char> >::operator <<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))' referenced from C:\CPPP\.OBJS\MAIN.O
Error: Unresolved external '__matherr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__matherrl' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fmode' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__argv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__wargv_expand_ptr' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_setargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_exitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wsetargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wexitargv' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fileinfo' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setargv__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setenvp__' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__turboFloat' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


MegaManZZ

anyone? is it only me that can't get past the proper installation stage? this is becomming way to frustrating for just a "hello world" script.. excuse my impatients.

stahta01

#5
My post of build log for bcc 5.5

-------------- Build: Debug in Test ---------------

bcc32.exe -q -w -x  -v    -IC:\Apps\BCC55\include  -IF:\SourceCode\Projects\IDEs\CodeBlocks\Test\Test -oobj\Debug\main.obj -c main.cpp
main.cpp:
ilink32.exe -q -ap  -v  -LC:\Apps\BCC55\lib  c0x32 obj\Debug\main.obj ,bin\Debug\Test.exe,,cw32mt.lib import32.lib ,,
Output size is 119.00 KB


Based on your output above, your search directory is wrong for the linker or a library is missing.
Does the folder "C:\Borland\BCC55\lib" exist?
It looks like library cw32mt is not on the linker command line.

Try adding it.
How to add libraries
"Project" -> "Build Options"
Select "Linker Settings"
Add Libraries under "Link Libraries"
Mine shows these two
cw32mt.lib
import32.lib

Note, the library order may matter; mine was in the order shown above.

What version of Code::Blocks are you using?
I am using SVN 4697.

What is your bcc install base folder? The one that contains sub-folders of bin, lib and include.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MegaManZZ

thanks, your a lifesaver. i get this now -

++++++++++++++++++++++++++++++++++++
Project   : Console application
Compiler  : Borland C++ Compiler 5.5 (called directly)
Directory : C:\Documents and Settings\toshiba\My Documents\Programs\
--------------------------------------------------------------------------------
Switching to target: default
ilink32.exe -ap        -L"C:\Borland\BCC55\lib" c0x32 .objs\main.obj ,"C:\Documents and Settings\toshiba\My Documents\Programs\console.exe",,  "C:\Borland\BCC55\Lib\cw32mt.lib" "C:\Borland\BCC55\Lib\import32.lib" "C:\Borland\BCC55\Lib\cw32mt.lib" "C:\Borland\BCC55\Lib\import32.lib" ,,
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
+++++++++++++++++++++++++++++++++++++++++++++++

using ver: 1.0rc2      (wasn't able to find any version numbers that start with SVN?)
folder "C:\Borland\BCC55\lib" does exist.
my install base folder is "C:\Borland\BCC55"

Im just starting to learn programming so there very well be something i missed when installing. Altho i do know i've tried many tutorials.

stahta01

#7
I suggest updating to a nightly build.
Most people assume you are using an recent Nightly Build; I would use one that works for at most 3 to 6 months.
They can be found in this forum.

http://forums.next.codeblocks.org/index.php/board,20.0.html

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MegaManZZ

problem solved!!!!!

It was a problem when i was creating the bcc32.cfg and the link32.cfg in the bin.
needed to be more specific with the caps!.. :?

MegaManZZ

the nightly build is intriguing:.. i will investigate further.