Re: gcc 4.1.1: char *p = "str" puts "str" into rodata

2007-01-28 Thread Ray Hurst
Shouldn't the compiler error out here. The statement: p = "" should have been p = '\0'; Or does the compiler treat them as equivalent. It seems that only characters should be assigned to char's and strings are illegal Ray Richard Guenther wrote: On 1/28/07, Denis Vlasenko <[EMAIL PROTECTED]>

Re: Can C and C++ object files be linked into an executable?

2007-01-27 Thread Ray Hurst
I think this was the answer I was looking for. By the way, was this the correct place to post it? Ray Ferad Zyulkyarov wrote: Hi, If you want to phrase the question in terms of object file format and linker issues, the answer is that the format is the same. It's easy to see why: the compiler

Re: Can C and C++ object files be linked into an executable?

2007-01-27 Thread Ray Hurst
:54PM -0800, Ray Hurst wrote: They told me to go to the compiler writer newsgroup. "They" told you wrong. You don't need a compiler writer to answer basic C++ programming questions.

Re: Can C and C++ object files be linked into an executable?

2007-01-26 Thread Ray Hurst
They told me to go to the compiler writer newsgroup. This isn't it? Ray Mike Stump wrote: On Jan 26, 2007, at 3:54 PM, Ray Hurst wrote: I have a code that is compiled in C and I need to link in C++ object files. I need to know if C++ object files created with a C++ compiler can be linked

Re: reading binarys

2007-01-26 Thread Ray Hurst
Jason, I'm not sure what you are asking here. It appears that you can do system dump of the internal state of the game. In which case the answer is yes. A programmer plans his memory space when a program is written. Every address in RAM space has a specific variable. The heap (stack) is loca

Can C and C++ object files be linked into an executable?

2007-01-26 Thread Ray Hurst
Hi, I have a code that is compiled in C and I need to link in C++ object files. I need to know if C++ object files created with a C++ compiler can be linked with C object files created with the C compiler. I have never attempted this. I have either written the entire project in C or C++. I ha