Talk:Free Compiler Setup

From OrbiterWiki
Revision as of 16:17, 15 August 2007 by 74.53.97.34 (talk)
Jump to navigation Jump to search

haute normandie mercedes 2000 project gotham racing 2 roma cartina paciotti 4us uomo francesca e nunziata auto usata lombardia mp3 1 gb radio fm giochi erotici di super eva hanghai comune avezzano musica gratis da scaricare playstation 2 www yaooh com siracusa albergo ad ogni costo w w w erosramazzotti com lettore dvd autoradio lg hd ready amstrad lettore dvd divx 3010 www bizzarre it donne di 50 anni grande fratelo 5 brittany spears nude jaime pressley triband cellulari lg hpi nitro mt2 la bottega di filosofia lady oscar - volume 1 nike oro air max silver l imbroglione impiegato ufficio acquisti (regione veneto - treviso provincia) paparazzi 2004 acer 1804wsmi elisa di componenti natasha klaus y michel brown autonoleggio venezia ragazzi perduti hoobastank mp3 cavo rca 20 mt frigo whirlpool 4170 psp giapponese sex arabe woofer attivo per auto il mio caro john conto correnti impresa koblenz volvo super polar 240 ram ddr 256mb 266mhz digitale terrestre smart prestito strasbourg cori alpini gratis grande display cordless mmc nokia dragon buble gianni barbara cx-7525 foto kodak fotocamere digitali deta estratto di mirtillo chitarra classica elettrificata frankie morello fionnula flanagan ibm mouse wheel optical mille lire hp stampanti 110 plus ati x800gto ultimate one day i ll fly away passalibro gps bluetooth kirrio ingegnere impiegata commerciale (regione lombardia - cremona provincia) philips 29pt8520 briana bancks daidegas milano-bormio frasi invito compleanno gli amanti del chiaro di luna il video del complesso studio 3 navigazione laghi tavolo da ping pong affitto vacanza roma quinny sx i ventitre giorni della citta di alba acer aspire wlmi 1672 www mutuionline it mariani alfredo e figlio moto depoca giochi x box hp all in one laser libri on line finalfantasy9 shiftey archos mp3 player arctic cooling freezer 64 patrick robinson un medico in famiglia. prima serie. vol. 20 pps di auguri router adsl 504t giustiziare idea bagno www athena it live 24-bit dead heart qwr data e home page americana per ghost in the shell colin mcrae rally 4 lucifer caradonna czuczor, gergely cani da caccia viewsonic monitor lcd rena katiuska wickedweasel ragazza pompei videocamere samsung led zeppelin dale lestate delle scimmie alfa o alpha allied telesyn mc101xl motore ricerca gogle oscar 1998 pioneer deh-p70bt bluetooth primax usb 9600 xp analmente broken by seether featuring amy lee epson stylus r300 har disk ethernet kamensk-uralski www tupostal nastro stampante juegos flash xxx lesche radio con cuffie heya dual voltage 256mb rio de janeiro ristorante il sentiero del peccato rial srl rc kit bluetooth celerita nude neruda, pablo griffin ifm box drive esterni temba disco mix goodies petey pablo inglesina moovy honda jazz usata elle macpherson photo galleri contatti msn video haiducii rumene www pirsch de gunter grass un trailer per age of conan gaoual break beat fotogallerie cinecitta campus f55 oregon scientific emr812hgn milano brno biglietti aerei microsoft visual studio net 2003 jupiter srl deer hunter 3 hombres nu snake tetris 1.0.1 pentium 4 2 8 ghz arabo mortasa kimberlite disco esterno usb 250 gb amd 64 pci-e 939 www sheti com layla i focker in dvd torneo pasquale morna africane mature russian fireworks. a naxos musical journey. russia pioneer dvd firewire palmare con gps hp tgcom home page giorgia girasole trasporti imbarcazioni valle shqipe razr v3 black (nero) quadriband informadove hotels picasso citroen moto(generale) lassedio olio di fegato di merluzzo ida corr t-zone balancing arcam solo sapphire pci-e x700 nuovo cimena paradiso fotos gordis ==Starting from scratch== I spent several frustrating days trying to get the CustomMFD to compile and was glad to find this wiki page with one of the things I was missing; excluding msvsirt.lib. I still kept running into problems, however, since I moved the location of the API and wasn't able to change the ..\..\lib\ references through the IDE directly. Eventually I threw in the towl and created a new project from scratch rather than converting the sample project files to the new format (which I'm guessing had the hardcoded directories.)

I'm including my notes on how to set this up below in the hopes that 1) it may save someone hours of frustration, and 2) if anyone else has a similar experience they can incorporate some of this back into the main article. I'm hesistant on the latter part since I did this on a development machine with an older version of the Platform SDK. I don't want to clutter the main article if these problem were unique to me. With that said, here goes.

First, I moved the Orbiter SDK to the Projects directory and created a new "Empty Project" in Projects as well. I then copied over the cpp and h file for the CustomMFD sample and nothing else. After fixing the fstream include problem mentioned in the main article and setting the configuration to Release, I changed the following settings under Properties:

  • Configuration Properties:
  • General
  • Configuration Type: Dynamic Library (.dll)
  • C/C
  • Genreal
  • Additional Include Directories:"C:\Program Files\Microsoft Platform SDK\Include";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include"
  • Warning Level: Level 3 (/W3)
  • Preprocessor
  • Preprocessor Definitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE
  • Code Generation
  • Runtime Library: Multi-threaded DLL (/MD)
  • Command Line: /O2 /I "C:\Program Files\Microsoft Platform SDK\Include" /I "C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\include" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "_WINDLL" /FD /EHsc /MD /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /nologo /c /TP /errorReport:prompt
  • Linker
  • General
  • Output File: $(OutDir)\$(ProjectName).dll
  • Additional Library Directories: "C:\Program Files\Microsoft Platform SDK\Lib";"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\lib"
  • Input
  • Additional Dependencies: user32.lib gdi32.lib orbiter.lib orbitersdk.lib
  • Ignore Specific Library: msvcirt.lib
  • Command Line: /OUT:"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\CustomMFD\Release\CustomMFD.dll" /NOLOGO /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /LIBPATH:"C:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects\Orbitersdk\lib" /DLL /MANIFEST /MANIFESTFILE:"Release\CustomMFD.dll.intermediate.manifest" /NODEFAULTLIB:"msvcirt.lib" /ERRORREPORT:PROMPT user32.lib gdi32.lib orbiter.lib orbitersdk.lib kernel32.lib

In the above settings list, I included the "Command Line" just as a reference. I didn't manually edit it. This setup was tested using Microsoft Visual Studio 2005 Version 8.0.50727.42.

One item of particular interest is the extra preprocessor includes. Without those, I was getting dozens of compile warnings related to the string functions. You can search the MSDN forums for more information on those.

And again, if anyone finds help with any of this, please merge the useful bits back to the main article.

--Rko281 07:17, 28 July 2006 (MSD)

Compiling ShuttlePB - Rank Beginner's Experiences

First I just want to say what a wonderful Wiki article this is as from a clean install, following the directions precisely, I was able to compile ShuttlePB using the free compiler Visual C .

The whole thing (excluding download time) took 15 minutes and I have no experience with C and only hobby programming experience with a few other languages.

I did find that I had to add an additional include to get it to compile as the first build came up with an error that it couldn't find fstream.h (and no doubt if the build had not terminated with a fatal error it would not have found math.h or float.h). These files reside in a crt folder under the directory C:\Program Files\Microsoft Platform SDK\. I therfore added the following include path to those listed in te relevant section of the wiki article: C:\Program Files\Microsoft Platform SDK\crt\.

The dll was then built without a problem. I test flew it and the little ShuttlePB flies like a dream! Very exciting stuff!

Now to see if I can do a panel and an MFD. I hope the above amendment might help others using the free compiler and if this needs to be added to wiki then someone with more knowledge than me should feel free to add it or if a better way exists to include the crt directory then explicitly state in wiki how to do so.

Thank you to everyone who contributed to this article as it is absolutely superb.

C Senescall 10 September 2006


Compiling addons with Panels

I can confirm that the free compiler (ie Visual C Express) does compile addons with panels. SimonRigy 05:31, 7 December 2006 (MSK)

Renaming a project

Does anyone know how to rename a project and all the files in it cleanly? When I used the old 2003 command line compiler, I didn't have to worry about project files and such. I just copied a folder to a new name, renamed all the files, and did a search on the old name and replaced with the new name. Is there a way to do something like this with the 2005 compiler? I don't really want to have to rebuild a project from scratch every time. Kwan3217 05:49, 21 December 2006 (MSK)