Sign in to follow this  
n4gix

Help Setting Up C Gauge Environment!

Recommended Posts

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! :)

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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

Share this post


Link to post
Share on other sites

>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.

Share this post


Link to post
Share on other sites

>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!

Share this post


Link to post
Share on other sites

>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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this