See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: CODING QUESTION  (Read 5763 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
04 April 2008, 01:20:18
I think I copied all the right info from the ShuttlePb example:
But I have gotten these errors:
---------- Capture Output ----------
> "C:\Microsoft Visual C++ Toolkit 2003\bin\cl.exe" @orbiter.rsp MOBILE3Aumu.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

cl
   
   /Ox /GX /ML /LD
      /I"c:\Microsoft Visual C++ Toolkit 2003\include"
      /I..\..\include
      /link /libpath:"c:\Microsoft Visual C++ Toolkit 2003\lib"
      /link /libpath:..\..\lib
      /link kernel32.lib user32.lib gdi32.lib
      /link orbitersdk.lib orbiter.lib
      /link /nodefaultlib:"MSVCRT.LIB" /nodefaultlib:"MSVCIRT.LIB"
   
     

MOBILE3Aumu.cpp
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:MOBILE3Aumu.dll
/dll
/implib:MOBILE3Aumu.lib
"/libpath:c:\Microsoft Visual C++ Toolkit 2003\lib"
/libpath:..\..\lib
kernel32.lib
user32.lib
gdi32.lib
orbitersdk.lib
orbiter.lib
/nodefaultlib:MSVCRT.LIB
/nodefaultlib:MSVCIRT.LIB
MOBILE3Aumu.obj
   Creating library MOBILE3Aumu.lib and object MOBILE3Aumu.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
UMmuSDK.lib(UMmuSDK.obj) : error LNK2019: unresolved external symbol __ftol2_sse referenced in function "public: int
__thiscall UMMUCREWMANAGMENT::GetCrewWeightBySlotNumber(int)" (?GetCrewWeightBySlotNumber@UMMUCREWMANAGMENT@@QAEHH@Z)
UMmuSDK.lib(universal_mmu.obj) : error LNK2019: unresolved external symbol __ftol2_sse referenced in function "int __cdecl
strcpy_s<110>(char (&)[110],char const *)" (??$strcpy_s@$0GO@@@YAHAAY0GO@DPBD@Z)
UMmuSDK.lib(universal_mmu.obj) : error LNK2019: unresolved external symbol _sprintf_s referenced in function "public: int
__thiscall UNIVERSALMMU::EVAMMu(char *,int,int,int,int,char *,union VECTOR3 *,union VECTOR3 *,union VECTOR3 *)"
(?EVAMMu@UNIVERSALMMU@@QAEHPADHHHH0PATVECTOR3@@11@Z)
UMmuSDK.lib(universal_mmu.obj) : error LNK2019: unresolved external symbol _strcpy_s referenced in function "int __cdecl
strcpy_s<110>(char (&)[110],char const *)" (??$strcpy_s@$0GO@@@YAHAAY0GO@DPBD@Z)
MOBILE3Aumu.dll : fatal error LNK1120: 3 unresolved externals

> Terminated with exit code 2.


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15410
  • Karma: 266
  • Hein, quoi !?
    • FsPassengers
Reply #1 - 04 April 2008, 02:22:44
You'll find the answer in red in the (short) PDF doc ;)

Cheers

Dan


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #2 - 04 April 2008, 03:54:57
Okay I need VC2005.  I notice that I can't get that on a CD now just a DVD or directly.


Offline EtherDragon

  • Jr. Member
  • **
  • Posts: 44
  • Karma: 0
Reply #3 - 07 April 2008, 18:04:20
Gattico, you can get Visual Studio 2008 Express for free from microsoft, and I have confirmed that it works to write
add-ons for Orbiter, UMMU and OrbiterSound.

http://www.microsoft.com/express/download/

Good luck!


~EtherDragon

Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #4 - 07 April 2008, 19:16:31
I saw that you need a DVD burner  to install off line


Offline Pirx

  • Full Member
  • ***
  • Posts: 114
  • Karma: 0
Reply #5 - 07 April 2008, 21:35:13
If your internet is fast enough to download the DVD image and if you have enough disk space, you can mount the
image in Daemon Tools or similar and install Visual Studio without burning it.


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #6 - 08 April 2008, 14:42:36
I found VS2005 on a cd.  So I will try it.  I still think it is odd that you have to have it as shuttlepb and rename it or am
I wrong on this point


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #7 - 09 April 2008, 14:20:33
ok I vs2005 swet up.  I think I link ed the libraries.  I ran The UMMU and get this error:

Compiling...
UMmuExample.cpp
c:\orbiter\doc\ummu_sdk\ummu_shuttlepb_example\ShuttlePB.h(19) : fatal error C1083: Cannot open include file:
'..\..\include\orbitersdk.h': No such file or directory
ShuttlePB.cpp
c:\orbiter\doc\ummu_sdk\ummu_shuttlepb_example\ShuttlePb.h(19) : fatal error C1083: Cannot open include file:
'..\..\include\orbitersdk.h': No such file or directory
Generating Code...


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #8 - 24 April 2008, 18:24:31
Okay now I get this message:
c:\orbiter\orbitersdk\include\OrbiterAPI.h(18) : fatal error C1083: Cannot open include file: 'windows.h'


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #9 - 24 April 2008, 19:17:29
Quote
gattico wrote:
Okay now I get this message:
c:\orbiter\orbitersdk\include\OrbiterAPI.h(18) : fatal error C1083: Cannot open include file: 'windows.h'

Fixed this.  but now I get this:
Compiling...
UMmuExample.cpp
ShuttlePB.cpp
Generating Code...
Linking...
LINK : fatal error LNK1181: cannot open input file '..\..\lib\Orbiter.lib'


Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15410
  • Karma: 266
  • Hein, quoi !?
    • FsPassengers
Reply #10 - 25 April 2008, 02:51:32
Your compiler can't find the path to orbiter.lib (from the SDK)

I have a whole tutorial about setting VC but it's in french:
http://orbiter.dansteph.com/forum/index.php?topic=6334.msg95341#msg95341

Maybe with a page translator, see the same page "translated" ?
if the translation is really bad you can see at least the pictures about adding path to the SDK see:
http://tinyurl.com/6mt3um

(3rd post I think)

Dan


Offline gattico

  • Sr. Member
  • ****
  • Posts: 339
  • Country: United States us
  • Karma: 16
Reply #11 - 25 April 2008, 11:36:36
Thanks I will try again.
I think I have it set up as seen here:
and this:

« Last Edit: 25 April 2008, 11:36:36 by gattico »