News:

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

Main Menu

Jump via doubleclick from error-log to appropriate position in the sourcecode?

Started by jmb, January 20, 2015, 12:20:47 PM

Previous topic - Next topic

jmb

Hi

I wonder whether that option (look at the topic) is not included yet. Or is there an plugin?
Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03

MortenMacFly

Quote from: jmb on January 20, 2015, 12:20:47 PM
I wonder whether that option (look at the topic) is not included yet. Or is there an plugin?
Works fine here, even with a single click from the "Build messages" tab.
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]

Jenna

If it still does not work:
which compiler do you use ?
is the output localized ?

jmb

Quote from: jens on January 20, 2015, 01:00:03 PM
If it still does not work:
which compiler do you use ?

Gnu GCC

Quote
is the output localized ?

It seems, I can't localize the program.

I installed

codeblocks-13.12mingw-setup.exe

from

http://www.codeblocks.org/downloads/26

So I work with the defaults.






Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03


jmb

Quote from: jens on January 20, 2015, 01:49:37 PM
If gcc is localized, you can try this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_can_I_change_the_language_of_the_compiler_.28gcc.29_output_to_english.3F

I am german. If this is important in that case because of the OS-settings.

After installation the IDE runs in english language. And I cant change that.

I tried what you suggested, but it has no effect. Even the value en_US.utf8 don't work.

I tried also the editor-setting "use encoding when opening files" with "default". (After installation
it was "windows-1252".


Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03

stahta01

What is the language displayed in "Build messages" tab?
The "Build messages" contains the output from the compiler if logging has NOT been disabled.

You may wish to verify full logging is enabled.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

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]

jmb

Quote from: stahta01 on January 20, 2015, 04:44:19 PM
What is the language displayed in "Build messages" tab?

English, as the whole IDE works in english here.

Quote
The "Build messages" contains the output from the compiler if logging has NOT been disabled.

It is set to "Full command line" and I tested the "build log" and the "build messages". For me
it still don't work No Idea. I simply installed the program, choose the compiler and thats it.

At least the affected line is named, so I can go there "by hand".

But thank you, for trying to help me.



Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03

Jenna

In some cases spaces or non english characters can lead to such problems.
If this is the case you should see something weird (cut paths) in the "File"-column of the "Build messages" tab.

jmb

Here is the Build-Log:

---------------------------- cut ----------------------------------

||=== Build: Release in DNS_Umschalter (compiler: GNU GCC Compiler) ===|
CodeBlocks_Tests\DNS_Umschalter\DNS_Umschalter\DNS_Umschalter.cpp||In function 'BOOL IsUserAdmin()':|
CodeBlocks_Tests\DNS_Umschalter\DNS_Umschalter\DNS_Umschalter.cpp|591|warning: missing braces around initializer for 'BYTE [6] {aka unsigned char [6]}' [-Wmissing-braces]|
obj\Release\DNS_Umschalter.o:DNS_Umschalter.cpp|| undefined reference to `CheckTokenMembership(void*, void*, int*)@12'|
||=== Build failed: 1 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|

---------------------------- cut ----------------------------------



The only thing I see, is that the path seems to be relative. It begins with the project-directory.
Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03

Jenna

If I see it correctly (in your other post) the path begins with an exclamation-mark ("!").
Try to remove it !

And please use code-tags (the button with the hash [ # ]) if you post code or log-content.

jmb

Quote from: jens on January 21, 2015, 12:20:04 AM
If I see it correctly (in your other post) the path begins with an exclamation-mark ("!").
Try to remove it !

You've found the reason :-)  Thank you. I removed that char and now it works.

Quote
And please use code-tags (the button with the hash [ # ]) if you post code or log-content.

ok, I thought, I don't need that, because it is simple text without any format.

Linux Mint, Cinnamon 19.3 , Code::Blocks 20.03