February 19, 200422 yr Moderator I have Borland C++ Compiler 5.5 installed here, but cannot make head-nor-tails about how EXACTLY to set up the "SDK sample" gauge(s) in the compiler's folder structure, nor what to do to get the darn SDK.gau to compile...The MS SDK is useless, since it assumes that you are using the Visual C++ compiler.Could some kind soul help me out?I've tried using the MinGW compiler (used with EasyGauge) but it's just as confusing...If I could ever get the durn "SDK sample" gauge stuff set up to compile at all, I've fairly certain that I could then follow my nose to creating multi-gauges from my own already tested and working C code!Assume that I'm stupid, and lead me by the ear, please! :) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 20, 200422 yr You know that you need different makefiles for GCC andBCC? Not the one from the SDK. And also a modified gauges.h? For gauges.h and makefile check out sd2gau15.zip from flightsim.com. If you have so try a structure like:- -sample - makefile,gauges_bcc.def,SDK.c,SDK.h etc. -inc - (fs2k)gauges.hcd in DOS-Prompt to "sample" and type "make".Arne Bartels
February 20, 200422 yr Bill, a quick search:http://forums.avsim.net/dcboard.php?az=sho...&topic_id=15877and here is the file.http://forums.avsim.net/user_files/63854.zipThis works!
February 20, 200422 yr Author Moderator >Bill, a quick search:>>http://forums.avsim.net/dcboard.php?az=sho...&topic_id=15877>>and here is the file.>>http://forums.avsim.net/user_files/63854.zip>>This works!Thanks for the pointer, Jean-Luc. I had found the thread yesterday during a search, but of by now the file had been purged from the system, and the link was dead.I'll check your .zip out later this morning and let you know.Thanks to Arne as well for the assistance. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 27, 200422 yr Author Moderator >Bill, a quick search:>>http://forums.avsim.net/dcboard.php?az=sho...&topic_id=15877>>and here is the file.>>http://forums.avsim.net/user_files/63854.zip>>This works!>Well, not to sound too stupid, but *where* do I place this, and *how* do I "run" it? Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 29, 200422 yr Author Moderator >all is explained in the thread linked above!!Thanks...I'm getting closer! After following all the directions (including the mistakes made by the other fellow), I finally managed to get this far:MAKE Version 5.2 Copyright © 1987, 2000 Borland bcc32 -O2 -w-par -q -6 -Oc -OS -Ov -tWD -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -Oi -RT- -v- -x- -xf -P- -Tkh32768 -c SDK.cSDK.c:Warning W8012 SDK.FlightMap.c 152: Comparing signed and unsigned values in function FlightMapCallbackWarning W8012 SDK.FlightMap.c 159: Comparing signed and unsigned values in function FlightMapCallbackWarning W8019 SDK.FlightMap.c 264: Code has no effect in function ScalePointWarning W8019 SDK.FlightMap.c 264: Code has no effect in function ScalePointWarning W8008 SDK.FlightMap.c 305: Condition is always true in function GPSARG_Get_WP_IDWarning W8019 SDK.FlightMap.c 358: Code has no effect in function AddNewWaypointWarning W8019 SDK.FlightMap.c 361: Code has no effect in function AddNewWaypointWarning W8019 SDK.FlightMap.c 361: Code has no effect in function AddNewWaypoint cpp32 -q -otmp.rc SDK.rcSDK.rc: brcc32 -fo SDK.res tmp.rcBorland Resource Compiler Version 5.40Copyright © 1990, 1999 Inprise Corporation. All rights reserved. del tmp.rc ilink32 /Tpd /c /C /Gn /x /q /Gpr c0d32x.obj SDK.obj , SDK.gau,, IMPORT32.LIB cw32mt.lib uuid.lib dsound.lib dxextra.lib ,gauges_bcc.def,SDK.res SDK.res Fatal: Unable to open file 'DSOUND.LIB'** error 2 ** deleting SDK.gauAs you can see, the compile stopped on a "Fatal" error, when it couldn't open file 'DSOUND.LIB'Any clues? Again, I caution you to assume that I'm stupid! Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
March 1, 200422 yr Author Moderator >Fatal: Unable to open file 'DSOUND.LIB'>>** error 2 ** deleting SDK.gau>>>As you can see, the compile stopped on a "Fatal" error, when>it couldn't open file 'DSOUND.LIB'>>Any clues? Again, I caution you to assume that I'm stupid!Again I say, Fr. Stupid strikes again!I found the problem, Halleluia!When I set up the ilink32.cfg I used your example to add the psdk to the -L path, but FORGOT to add the Borland to the line! :(-L"c:Borlandbcc55lib";"c:BorlandBcc55libpsdk"The gauge compiled, but of course didn't get "moved" where I wanted it... but, that's another story!Thanks! Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment