News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Any plugin for help shortcut

Started by neo1691, September 24, 2011, 11:20:25 AM

Previous topic - Next topic

neo1691

Hello World :)
This is my first thread here.
I am moving to code::blocks from turbo c++ and i am still learning c programming.
There is a feature in turbo c++ where suppose if i stop my cursor on (say) stdlib.h and press ctrl+f1 then a window pops up showing all functions defined in stdlib.h.
My question is that is there any similar feature in code::blocks.
Thank you !

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

neo1691

Quote from: oBFusCATed on September 25, 2011, 12:13:41 AM
Have you tried the help plugin?
http://wiki.codeblocks.org/index.php?title=Help_plugin

Thank you. That was exactly what i was looking for. I am sorry but i am going a little off topic here..
My college uses Turbo C compiler and i am supposed to give my practical examination on turbo C only.

So before installing C::B i installed Borland Compiler and then installed C::B so that it detected Borland compiler at startup.
So in compiler settings Borland is my default compiler.
But when i write a c program (viz:Matrix addition etc) i get many errors in code::blocks.
But when i run the same .c file in Turbo C it gets compiled easily without any errors.

I understand that i am making some mistake with setting up C::B with borland compiler.
Please help me as i unable to make it run.
I googled 20 hours on the same yesterday.

(PS: i am not using TC as it cannot be viewed in full screen in Vista 32 bit. I tried dosbox but the keyboard layout of dosbox is different. I also tried installing XP on virtual machine but dos programs on virtual machine run in low resolution (small screen).)

Again i am sorry if i have broken any forum rules, but please do help me. thank you!!

Alpha

Does this help?
Also, did you select the compiler from the drop-down list?

neo1691

Quote from: Alpha on September 25, 2011, 06:29:49 PM
Does this help?
Also, did you select the compiler from the drop-down list?
I had tried the link before that you gave me. The borland compiler isnt available on the official website.
Apart from that the compiler is already selected from the drop down list.
Here are the set of error that i get:


Compiling: H:\Programming\Codeblocks tests\Matrix Operations\addition of matrices.c
h:\programming\codeblocks tests\matrix operations\addition of matrices.c:
Linking console executable: H:\Programming\Codeblocks tests\Matrix Operations\addition of matrices.exe
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 '_scanf' referenced from H:\PROGRAMMING\CODEBLOCKS TESTS\MATRIX OPERATIONS\ADDITION OF MATRICES.OBJ
Error: Unresolved external '_printf' referenced from H:\PROGRAMMING\CODEBLOCKS TESTS\MATRIX OPERATIONS\ADDITION OF MATRICES.OBJ
Error: Unresolved external '_getch' referenced from H:\PROGRAMMING\CODEBLOCKS TESTS\MATRIX OPERATIONS\ADDITION OF MATRICES.OBJ
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 2 (0 minutes, 1 seconds)
0 errors, 0 warnings

Checking for existence: H:\Programming\Codeblocks tests\Matrix Operations\addition of matrices.exe
Executing: C:\Program Files\CodeBlocks/cb_console_runner.exe "H:\Programming\Codeblocks tests\Matrix Operations\addition of matrices.exe" (in H:\Programming\Codeblocks tests\Matrix Operations)
Process terminated with status -1073741510 (0 minutes, 8 seconds)


C;\BORLAND|BCC55 is the path where i have installed the borland 5.5 compiler.( I got this from google)

Alpha

#5
Could you look at your full compiler log?

Quote from: neo1691 on September 25, 2011, 07:46:15 AM
But when i run the same .c file in Turbo C it gets compiled easily without any errors.
I am not very familiar with this compiler, so does that mean the program successfully compiles command line, or inside a different IDE?

  • If it is command line, could you post the command you type (and any output it generates) in addition to Code::Blocks' full log?

From within Code::Blocks, does compiling something such as a simple Hello world project succeed?

Edit: Do any of the functions you are using require linking to a library?

neo1691

Quote from: Alpha on September 25, 2011, 08:22:43 PM
Could you look at your full compiler log?

Quote from: neo1691 on September 25, 2011, 07:46:15 AM
But when i run the same .c file in Turbo C it gets compiled easily without any errors.
I am not very familiar with this compiler, so does that mean the program successfully compiles command line, or inside a different IDE?

  • If it is command line, could you post the command you type (and any output it generates) in addition to Code::Blocks' full log?

From within Code::Blocks, does compiling something such as a simple Hello world project succeed?

Edit: Do any of the functions you are using require linking to a library?

1.I enabled the full compiler log from settings. where can i see it?
2. It does not produce any output. just those messages i posted in the earlier post. The same result happens while typing a simple hello world program.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

neo1691

Quote from: oBFusCATed on September 25, 2011, 09:21:42 PM
Fulllog is seen in the "Messages" pane -> http://www.codeblocks.org/images/stories/imagebrowser/scr1.png
In the build log tab.

In that case maybe post #4 contains all the messages that i get in build log pane

oBFusCATed

No, it doesn't, there are no commands in the log.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

neo1691

Quote from: oBFusCATed on September 25, 2011, 09:32:00 PM
No, it doesn't, there are no commands in the log.
Then i am unable to find them, can you please elaborate on where to find them?

Alpha

Have you check if the toolchain executables listed in Code::Blocks all match the existing ones on your hard-drive?

Quote from: neo1691 on September 25, 2011, 10:31:56 PM
Then i am unable to find them, can you please elaborate on where to find them?
Open Settings->Compiler and debugger...->Build options (tab) and check Save build log and Always output the full command line (see screenshot).  When you compile, Code::Blocks will generate an html log in the same directory as your project.
Quote from: Alpha on September 25, 2011, 08:22:43 PM
Could you look at your full compiler log?
(If you followed this link, you would have found the same instructions.)

Jenna

Quote from: Alpha on September 25, 2011, 11:04:51 PM
Have you check if the toolchain executables listed in Code::Blocks all match the existing ones on your hard-drive?

Quote from: neo1691 on September 25, 2011, 10:31:56 PM
Then i am unable to find them, can you please elaborate on where to find them?
Open Settings->Compiler and debugger...->Build options (tab) and check Save build log and Always output the full command line (see screenshot).  When you compile, Code::Blocks will generate an html log in the same directory as your project.
Creating a HTML-log is not necessary, and for a quick look while developping software it's more easy to do the changes as mentioned in the FAQ's, as you (Alpha) posted before:
Quote from: Alpha on September 25, 2011, 11:04:51 PM
Quote from: Alpha on September 25, 2011, 08:22:43 PM
Could you look at your full compiler log?
(If you followed this link, you would have found the same instructions.)


Alpha

Quote from: jens on September 25, 2011, 11:20:43 PM
Creating a HTML-log is not necessary, and for a quick look while developping software it's more easy to do the changes as mentioned in the FAQ's, as you (Alpha) posted before...
Right.  (Sorry, I am so used to looking back at my build logs, it did not occur to me.)

neo1691

Quote from: jens on September 25, 2011, 11:20:43 PM
Quote from: Alpha on September 25, 2011, 11:04:51 PM
Have you check if the toolchain executables listed in Code::Blocks all match the existing ones on your hard-drive?



Quote from: neo1691 on September 25, 2011, 10:31:56 PM
Then i am unable to find them, can you please elaborate on where to find them?
Open Settings->Compiler and debugger...->Build options (tab) and check Save build log and Always output the full command line (see screenshot).  When you compile, Code::Blocks will generate an html log in the same directory as your project.
Creating a HTML-log is not necessary, and for a quick look while developping software it's more easy to do the changes as mentioned in the FAQ's, as you (Alpha) posted before:
Quote from: Alpha on September 25, 2011, 11:04:51 PM
Quote from: Alpha on September 25, 2011, 08:22:43 PM
Could you look at your full compiler log?
(If you followed this link, you would have found the same instructions.)


1.Yes all the tool chain executables match with the ones one hard disk

2.I did tried to read all the faqs and according to that i am supposed to install Borland compiler from the official site, which is unavailable.
I googled about the compiler and i found one thats what i am using!