Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Code::Blocks and Eclipse same debugger error "No symbol table loaded"

29 views
Skip to first unread message

blisca

unread,
Jan 25, 2018, 1:49:17 AM1/25/18
to
Hello

i need some help,please

I have installed two c++ environment
Code::Blocks and Eclipse Oxygen

In both cases a simple "Hello world" project is compiled with 0 errors 0
warnings,
but i can't debug it.
If i set a breakpoint i have this error:

No symbol table is loaded. Use the "file" command.

I read lot of forum for similar question,checked all the boxes (i
think)having to do with debug information generation,but no way

Should i re-install MinGw oe what?

Please can you help me?

Thank you so much for your attention

---
Questa email è stata esaminata alla ricerca di virus da AVG.
http://www.avg.com

Vir Campestris

unread,
Jan 25, 2018, 4:07:26 PM1/25/18
to
On 25/01/2018 06:47, blisca wrote:
> Hello
>
> i need some help,please
>
> I have installed two c++ environment
> Code::Blocks and Eclipse Oxygen
>
> In both cases a simple "Hello world" project is compiled with 0 errors 0
> warnings,
> but i can't debug it.
> If i set a breakpoint i have this error:
>
> No symbol table is loaded.  Use the "file" command.
>
> I read lot of forum for similar question,checked all the boxes (i
> think)having to do with debug information generation,but no way
>
> Should i re-install MinGw oe what?
>
> Please can you help me?
>
> Thank you so much for your attention
>
I'm going to guess you're running Linux and Gnu tools.

There's a switch "-g" to the Gnu compilers to make them generate debug
information.
> ---
> Questa email è stata esaminata alla ricerca di virus da AVG.
> http://www.avg.com
>
And turn that thing off please. There is an option somewhere in the tool.

Andy

Jorgen Grahn

unread,
Jan 26, 2018, 7:34:03 AM1/26/18
to
On Thu, 2018-01-25, Vir Campestris wrote:
> On 25/01/2018 06:47, blisca wrote:
>> Hello
>>
>> i need some help,please
>>
>> I have installed two c++ environment
>> Code::Blocks and Eclipse Oxygen
>>
>> In both cases a simple "Hello world" project is compiled with 0 errors 0
>> warnings,
>> but i can't debug it.
>> If i set a breakpoint i have this error:
>>
>> No symbol table is loaded.  Use the "file" command.
>>
>> I read lot of forum for similar question,checked all the boxes (i
>> think)having to do with debug information generation,but no way
>>
>> Should i re-install MinGw oe what?
>>
>> Please can you help me?
>>
>> Thank you so much for your attention
>>
> I'm going to guess you're running Linux and Gnu tools.
>
> There's a switch "-g" to the Gnu compilers to make them generate debug
> information.

And I'm guessing the IDE has an option to do "debug" builds,
which enables the option under the hood.

IMO, one should always build with -g. It doesn't cost anything but
disk space, and it lets you debug core dumps, debug with valgrind and
so on. And you can always strip the binaries later, if it becomes
necessary.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
0 new messages