Sigh, what a pain. I'm probably better off just rewriting the thing to get rid of the global, even if it makes the interface less convenient.
I might be actually better off using C++ :p
Type: Posts; User: krock923
Sigh, what a pain. I'm probably better off just rewriting the thing to get rid of the global, even if it makes the interface less convenient.
I might be actually better off using C++ :p
Thanks :)
If a shared library uses a global variable that is not exported, does each process that uses that library get a copy of that variable?
For example, in the library in the source for one of the...
printf( "%.2f", .650 );
will print .65 substitute the 2 with 3 or however many digits you want. Keep in mind that it will always be that many digits.
So,
printf( "%.2f", .656 );
will...
Ouch :p
It's finals time and I haven't slept much this past week. . .
Rest assured that it all is correct inside the actual source file. gcc is good about complaining when the code is that...
Sorry, I was trying to not show parts that are unnecessary. To point out your arguments, which are absolutely rational from only seeing that fragment, I'll admit:
The foo/bar thing was pointed...
When that happens, the best thing to do is to step away from your code for an hour or two.
It's something I read in a GNU doc somewhere - I just had to implement it. It calls malloc, checks for the null pointer and kills the program if it finds one.
I figure if the runtime system can't...
Yup, that did it. Thank you for the help. :)
Yes, bar should = foo. That was just a typo on my part and they are indeed the same values in my code.
Unfortunately, you don't win at the error guessing game :p Here's the error I get:
...
Hi, new to these boards and they seem like a great place to spend some time. I have a question about double pointers to structs that I'm hoping someone can help me out with. If I have a double...