Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Linux .brc handling bug
Re: Linux .brc handling bug [message #7260 is a reply to message #6396] Tue, 19 December 2006 19:23 Go to previous messageGo to previous message
Balage is currently offline  Balage
Messages: 17
Registered: December 2006
Promising Member
And that works? It shouldn't Confused
Taking the address of a char* results in char**, which you convert to const char*. It's only blind luck or coincidence I suppose why that doesn't crash big Smile

EDIT: After reading the C FAQ, the reason why that doesn't crash, is that you take the address of a variable which holds a pointer, namely the address of std_tmpl_main[0].

This part of the library is awfully messy.

I've found someone else who also had this problem: http://cprogrammers.blogspot.com/2006/10/c-programming-diffe rent-signature.html

EDIT: I took a look at the C FAQ, and the exact problem is mentioned there (a VERY GOOD read): http://c-faq.com/aryptr/index.html

So I recommend to DON'T use the above code, but instead, use what produced the segfault, and fix the library.

[Updated on: Tue, 19 December 2006 20:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compile problem in Gentoo-AMD64
Next Topic: Can't Seem to See Console Output While In the Debugger
Goto Forum:
  


Current Time: Sun Aug 10 07:15:40 CEST 2025

Total time taken to generate the page: 0.02948 seconds