User forums > Help

Big question!!

(1/3) > >>

kecho:
Is there any way of porting messages from the command prompt to C::B ?? every time I compile i never get the errors... only if the build failed in the message box...

DrewBoo:

--- Quote from: kecho on March 18, 2008, 03:28:17 pm ---Is there any way of porting messages from the command prompt to C::B ?? every time I compile i never get the errors... only if the build failed in the message box...

--- End quote ---

Hi, kecho.

The complete output is shown in a window titled "Build log" and a summary is in another window titled "Build messages".

If you don't see these, go to the view menu and make sure "Logs" is checked.

kecho:
well yes perhaps I should have been more specific. Say I have a project named "test", which has the file main.c
the content is:

--- Code: ---#include <stdio.h>
int main ()
{
    printf("hello world ")
    return 0;
}


--- End code ---

Whenever I compile using djgpp in the command prompt I get:


--- Code: ---c:\>GCC.EXE -Wall  -g    -IC:\DJGPP\BIN  -c C:\dos\test\main.c -o obj\Debug\main.o
C:\dos\test\main.c: In function 'main':
C:\dos\test\main.c:6: error: expected ';' before '}' token
C:\dos\test\main.c:6: warning: control reaches end of non-void function
c:\>_

--- End code ---

but when doing it in c::b I get this in the message box:


--- Code: ---
-------------- Build: Debug in test ---------------

GCC.EXE -Wall  -g    -IC:\DJGPP\BIN  -c C:\dos\test\main.c -o obj\Debug\main.o
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


--- End code ---

Yes I know c::b, there is an error in my code! but where ??

As you can see, c::b doesn't show me explicitly where and what errors do I have, I was hoping that there is a window or something like in Visual Studio that would let me see exactly in what line is the semicolon missing (I have projects about thousand of lines of code and it will be no fun to look out where is the semicolon missing or where i forgot a parenthesis ;) )

If not I guess the solution will be keep using the command prompt... which is what I don't want :D

hope you guys can help, thanks!

Jenna:
If you use the posted code in C::B you should have the same error.
I can't compile it without errors.

It's exactly what the compiler says: you're missing a semicolon.
The first line in main-function is the problem.

By the way that's not a real C::B specific question.

kecho:

--- Quote from: jens on March 19, 2008, 06:03:52 pm ---If you use the posted code in C::B you should have the same error.
I can't compile it without errors.

It's exactly what the compiler says: you're missing a semicolon.
The first line in main-function is the problem.

By the way that's not a real C::B specific question.

--- End quote ---

Apparently you didn't get my point and your language semantics are confusing me. Perhaps your message window in your C::B displays the line and where the error occurs, but my C::B message window doesn't. It must be a configuration problem but I can't find where to fix that. And yes its a specific C::B question, I posted the code as a simple example so anyone can get my point and apparently you didn't.


--- Quote ---If you use the posted code in C::B you should have the same error.
--- End quote ---

But i don't get the same error! and that's the whole point of this topic, and no the answer is not "you should have the same error".

Navigation

[0] Message Index

[#] Next page

Go to full version