Hi,
I am pretty new to using Xcode, and I have used some C++ before. The problem that I am having is that code which used to compile correctly is not doing so anymore.
The problem is as follows:
I create a new C++ tool within Xcode. I then proceed to write a new set of functions using a header file and a cpp file. However, upon compiling Xcode, it decides to point the first variable of the function to a random bit in the memory. I can see this is happening when I debug in Xcode
I.e. when I write Foo(100.0,100.0,0.0,0.0,0.2,0.0) then what in fact is calculated is Foo(XXXXX,100.0,0.0,0.0,0.2,0.0), where XXXXX is a seemingly random variable.
Have I set up Xcode wrongly or is there something I can do to fix the problem (i.e. is it a code based issue??). If it makes it easier, I can post my code.
Regards,
TFF
I am pretty new to using Xcode, and I have used some C++ before. The problem that I am having is that code which used to compile correctly is not doing so anymore.
The problem is as follows:
I create a new C++ tool within Xcode. I then proceed to write a new set of functions using a header file and a cpp file. However, upon compiling Xcode, it decides to point the first variable of the function to a random bit in the memory. I can see this is happening when I debug in Xcode
I.e. when I write Foo(100.0,100.0,0.0,0.0,0.2,0.0) then what in fact is calculated is Foo(XXXXX,100.0,0.0,0.0,0.2,0.0), where XXXXX is a seemingly random variable.
Have I set up Xcode wrongly or is there something I can do to fix the problem (i.e. is it a code based issue??). If it makes it easier, I can post my code.
Regards,
TFF