PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problems compiling examples

Hi,
I've just downloaded the gapidraw library and am trying to compile the sample applications. Every time I try to build them, I get the message: C:\GapiDraw\samples\Minimal\Common\MyApplication.h(6) : fatal error C1083: Cannot open include file: 'GapiApplication.h': No such file or directory

I can see the file in the project. Is there some setup step I missed? Any help would be appreciated.
Thanks in advance.
mikeyleo · 22 Jul 2003, 00:51 UTC — problems compiling examples
I've been playing around with trying to compile the examples, specificly the minimal example. I can get past compiling the include files if I include path information. Then next I have to add the path for the library. I get stuck with a linker error with the SHFullScreen function.

Does anybody have any clues to why this is happening? I assume I don't have to set up anything special and can just compile the examples as is.

Thanks
Are you trying to build with eVcc 3 or Vcc 6? I just tested the builds under both, and they worked fine for me.
If I remember correctly (always an iffy proposition!), you will need to go under Project... Settings... Link... Input... add aygshell.lib in the list of object/library modules. As I recall, that's where the SHxxxx functions are found.
mikeyleo · 22 Jul 2003, 12:04 UTC — problems compiling examples
Actually I'm using version 4 of the embedded tools.

I'll try to see if the library needs to be added.
Thanks!

Mike
mikeyleo: Try downloading the GapiDraw 2.04 release, which includes the aygshell library automatically.
Cool, I didn't know it was now included. I like it, one more dependency I can remove from my project!
fzammetti: If you have time, please test the new rotation in 2.04 with your sample application and report back what you think.. :)
I just finished... In fact I did my entire game with 2.04, so there was even more examples to see... Everything seems to be working perfectly. :) Fantastic work, I am happy as a pig in... well, no need to finish that sentence. Thank you very much for your work, it is greatly appreciated :)

Incidentally, removing aygshell.lib from the link settings worked as you indicated, so that's cool too.

One weird thing (don't spend any time on this though since I can't explain it) is that yesterday when I tried 2.03, I couldn't seem to use the CRect class, but now with 2.04 I can. I didn't change anything else aside from swapping out the different GD versions, so I don't know why it didn't work yesterday. Ah well, works now so who cares! :)