VS2005

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Changed the seeting to Multithread dll Now this:
Compiling...
UMmuExample.cpp
ShuttlePB.cpp
Generating Code...
Linking...
Creating library .\..\..\..\Modules/ShuttlePB.lib and object .\..\..\..\Modules/ShuttlePB.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
 

computerex

Addon Developer
Addon Developer
Joined
Oct 16, 2007
Messages
1,282
Reaction score
17
Points
0
Location
Florida
Changed the seeting to Multithread dll Now this:
Compiling...
UMmuExample.cpp
ShuttlePB.cpp
Generating Code...
Linking...
Creating library .......Modules/ShuttlePB.lib and object .......Modules/ShuttlePB.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...


Ignore the msvcrt.lib.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Well it does crash but it need work either. I am working on the UMMU example. I changed a name and compiled and copied the dll from the release foilder into the modules folder. RAn the scenario but no change of the names
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
I get this now: I had to ignore these:
msvcrt.lib; msvcirt.lib


[SIZE=+3]Build Log [/SIZE] Build started: Project: ShuttlePB, Configuration: Release|Win32


[SIZE=+2]Command Lines [/SIZE] Creating temporary file "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00001022123620.rsp" with contents
[
/OUT:".\release/UMmuShuttlePB.dll" /INCREMENTAL:NO /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /LIBPATH:"C:\orbiter\Orbitersdk\lib" /DLL /MANIFEST /MANIFESTFILE:".\Release\UMmuShuttlePB.dll.intermediate.manifest" /NODEFAULTLIB:"msvcrt.lib" /NODEFAULTLIB:"msvcirt.lib" /SUBSYSTEM:WINDOWS /IMPLIB:".\..\..\..\Modules/ShuttlePB.lib" /MACHINE:X86 kernel32.lib user32.lib gdi32.lib kernel32.lib

"..\..\lib\Orbiter.lib"

"..\..\lib\Orbitersdk.lib"

".\UMmuSDK.lib"

".\Release\ShuttlePB.obj"

".\Release\UMmuExample.obj"
]
Creating command line "link.exe @c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00001022123620.rsp /NOLOGO /ERRORREPORT:pROMPT"
Creating temporary file "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00001122123620.rsp" with contents
[
/outputresource:".\Release\UMmuShuttlePB.dll;#2" /manifest

.\Release\UMmuShuttlePB.dll.intermediate.manifest
]
Creating command line "mt.exe @c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00001122123620.rsp /nologo"
Creating temporary file "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BAT00001222123620.bat" with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > .\Release\mt.dep
]
Creating command line "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BAT00001222123620.bat"
[SIZE=+2]Output Window [/SIZE] Linking...
Creating library .\..\..\..\Modules/ShuttlePB.lib and object .\..\..\..\Modules/ShuttlePB.exp
UMmuExample.obj : warning LNK4217: locally defined symbol _sprintf imported in function "public: virtual void __thiscall ShuttlePB::clbkPostStep(double,double,double)" (?clbkPostStep@ShuttlePB@@UAEXNNN@Z)
Embedding manifest...
[SIZE=+2]Results [/SIZE] Build log was saved at "file://c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BuildLog.htm"
ShuttlePB - 0 error(s), 1 warning(s)
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
ShuttlePB - 0 error(s), 1 warning(s)
means that it has built, test it with Orbiter...
and make sure you back up files
:cheers:
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
That what I think. But I changed the names of the eva guys. compiled. Get the .dll from the release folder and paste in the modules folder. Run the demo and no name change of the eva.
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
That what I think. But I changed the names of the eva guys. compiled. Get the .dll from the release folder and paste in the modules folder. Run the demo and no name change of the eva.


Ok, so did you build the entire project? or just the one screen? also did you overwrite something when you pasted into Orbiter modules folder?

Also make sure your opening the right ship,

Just wondering, what did you change?
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
I changed it to Multi thread and no errors Yeah!!!
But no changes in the demo scenario.
Thanks
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Ok I am starting a new project. What is this and how do I get rid of it.
#include "stdafx.h
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Thanks, Thats what I thought but I keep getting this:
.\ML.cpp(922) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

This is what the declaration look like:

#define STRICT
#define ORBITER_MODULE

#include "orbitersdk.h"

ML::ML (OBJHANDLE hVessel, int flightmodel)
: VESSEL2 (hVessel, flightmodel)
{
IGNITION_check = NO_START;
AIRLOCKOUTER_status = DOOR_OPEN;
AIRLOCKOUTER_proc = 0;
AIRLOCKINNER_status = DOOR_OPEN;
AIRLOCKINNER_proc = 0;
CABDOOR_status = DOOR_OPEN;
CABDOOR_proc = 0;
LIFT_SPEED =.25;
t1 = 1;
i2l = 0.5;
i2r = 0.5;
i2=.5;
TURRET_check = TM_STOP;
GUN_check=0;
TURRET_proc=0;
GUN_proc=0;
DefineAnimations ();

}
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Posts merged

I don't have this file (#include "stdafx.h") included. But it is still wanting it.

[edit]
I fixed it. I had to set a c/C+ setting not to use precomplied heading
[/edit]
 
Last edited by a moderator:

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,702
Reaction score
2,679
Points
203
Location
Dallas, TX
Ok now I get a whole bunch of link errors like these:
------ Build started: Project: ML, Configuration: Release Win32 ------
Linking...
Creating library C:\Orbiter\Orbitersdk\samples\ML\Release\ML.lib and object C:\Orbiter\Orbitersdk\samples\ML\Release\ML.exp
ML.obj : error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ" (?.cctor@@$$FYMXXZ)
ML.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall LaunchpadItem::Name(void)" (?Name@LaunchpadItem@@UAEPADXZ)
ML.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall LaunchpadItem::Description(void)" (?Description@LaunchpadItem@@UAEPADXZ)

I guess what I don't get is I loaded a project and it compiled and linked fine. I used the same setting

fixed. I used an example and just trasfer the info over
 
Last edited:
Top