SDK Question are there new Samplecodes?

huddi

New member
Joined
Apr 20, 2009
Messages
38
Reaction score
0
Points
0
Hi,

did anybody modify the samples to VC++ 2005 and uploaded them somewhere?

would save a lot of editing time :cheers:
 
i compiled deltaglider successfully then i tried to compile the sample "dragonfly".
i did the option changes:
-exclude msvcirt.lib
-change <fstream.h> to <iostream> in the orbitersdk.h

but now i get 32 errors and 247 warnings.
this i thought was because of the other version of visual studio.
errors are eg. :
-overloaded function "sqrt" is not univocally used (could be float, double or long double)
 
when i edit those functions eg to sqrt((float)3) instead of sqrt(3)
these errormessages dont appear anymore
but i get the errormessages
-h:\orbiter stuff\orbiterrel\modules cannot be created
-fatal error LNK1104: Datei "H:\Orbiter stuff\OrbiterRel\Modules\Dragonfly.dll"
 
The OrbiterWiki contains a lot of information about compiler setup.

The last error message you posted seems to be a rights issue with your operating system, check if you have proper writing rights (and share those with VC++ 2005)

Happy orbiting
 
....-change <fstream.h> to <iostream> in the orbitersdk.h....

Hi,

You have got me worried now... wasn't it just change <fstream.h> to <fstream>? This is the first I hear of changing it to <iostream>...
 
The OrbiterWiki contains a lot of information about compiler setup.

I tried all things mentioned in the article.
Is it possible, that i have got problems because i work with
VC++ standard edition?

The last error message you posted seems to be a rights issue with your operating system, check if you have proper writing rights (and share those with VC++ 2005)

I opened visual studio as an administrator and loaded the project but this didn't help. Have you got any other ideas?
(btw DeltaGlider compiles fine)

thanks

---------- Post added at 08:30 PM ---------- Previous post was at 08:29 PM ----------

Hi,
wasn't it just change <fstream.h> to <fstream>?

Yes you're right! At least I dont get those masses of warnings anymore :)

thank you
 
I tried all things mentioned in the article.
Is it possible, that i have got problems because i work with
VC++ standard edition?
I compile fine using VS2008 standard.

I opened visual studio as an administrator and loaded the project but this didn't help. Have you got any other ideas?
(btw DeltaGlider compiles fine)

thanks
If you have an antivirus running, it may have locked the file. SpybotS&D, I know, causes problems and prevents me from compiling.
 
Back
Top