Author Topic: begginer having hard time with "hello world"  (Read 8293 times)

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
begginer having hard time with "hello world"
« on: December 03, 2007, 12:03:29 am »
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.

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #1 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 :(

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: begginer having hard time with "hello world"
« Reply #2 on: December 03, 2007, 03:38:34 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #3 on: December 03, 2007, 04:09:22 pm »
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
 

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #4 on: December 04, 2007, 02:25:52 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: begginer having hard time with "hello world"
« Reply #5 on: December 04, 2007, 02:39:45 am »
My post of build log for bcc 5.5
Code
-------------- 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
« Last Edit: December 04, 2007, 03:19:13 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #6 on: December 04, 2007, 03:47:17 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: begginer having hard time with "hello world"
« Reply #7 on: December 04, 2007, 03:51:39 am »
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.codeblocks.org/index.php/board,20.0.html

Tim S
« Last Edit: December 04, 2007, 03:53:55 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #8 on: December 04, 2007, 04:06:34 am »
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!.. :?

Offline MegaManZZ

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: begginer having hard time with "hello world"
« Reply #9 on: December 04, 2007, 04:10:29 am »
the nightly build is intriguing:.. i will investigate further.