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   |
Balage
Messages: 17 Registered: December 2006
|
Promising Member |
|
|
And that works? It shouldn't 
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 
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
|
|
|
 |
|
Linux .brc handling bug
By: zsolt on Fri, 10 November 2006 14:13
|
 |
|
Re: Linux .brc handling bug
By: mirek on Sat, 11 November 2006 13:42
|
 |
|
Re: Linux .brc handling bug
By: zsolt on Sat, 11 November 2006 15:02
|
 |
|
Re: Linux .brc handling bug
By: zsolt on Sat, 11 November 2006 15:36
|
 |
|
Re: Linux .brc handling bug
By: zsolt on Tue, 19 December 2006 14:13
|
 |
|
Re: Linux .brc handling bug
By: Balage on Tue, 19 December 2006 15:37
|
 |
|
Re: Linux .brc handling bug
By: zsolt on Tue, 19 December 2006 18:41
|
 |
|
Re: Linux .brc handling bug
By: Balage on Tue, 19 December 2006 19:23
|
 |
|
Re: Linux .brc handling bug
By: zsolt on Tue, 19 December 2006 20:56
|
 |
|
Re: Linux .brc handling bug
By: mirek on Tue, 19 December 2006 21:26
|
 |
|
Re: Linux .brc handling bug
By: Balage on Tue, 19 December 2006 22:36
|
 |
|
Re: Linux .brc handling bug
By: mirek on Tue, 19 December 2006 23:36
|
 |
|
Re: Linux .brc handling bug
By: Balage on Wed, 20 December 2006 00:06
|
Goto Forum:
Current Time: Sun Aug 10 07:15:40 CEST 2025
Total time taken to generate the page: 0.02948 seconds
|