GLBasic forum

Main forum => GLBasic - en => Topic started by: kirkdev on 2019-Apr-22

Title: GPC - C++ files
Post by: kirkdev on 2019-Apr-22
Is there a way to see the the generated c++ files using v16? Also is it possible to compile to asm.js using emscripten?

Title: Re: GPC - C++ files
Post by: Steinbock on 2019-Apr-22
Hello kirkdev

The C-files are located at "%appdata%\..\Local\Temp\glbasic\".
To get there
-  press WINKEY+R
-  type "%appdata%\.."
-  windows explorer will open and the you can go to folder "\Local\Temp\glbasic\"




Title: Re: GPC - C++ files
Post by: kirkdev on 2019-Apr-22
Thank you.

I thought they would just be placed inside each individual project folder rather then overriding for each project compliation.
Title: Re: GPC - C++ files
Post by: dreamerman on 2019-Apr-22
Yes, this is some kind of 'issue' if You have multiple projects opened and want to compile them, as each time temp directory is cleared and whole project need to be recompiled.
About that html5, I have no idea, from what I see, now emscripten needs to be downloaded separately and some environment variables need to be set, and I don't want to play with this for now. But there are some users that should help You with this questions ;)
Title: Re: GPC - C++ files
Post by: kirkdev on 2019-Apr-22
Yes, would be nice to see this improved upon in a later version maybe? I will have a play around with emscripten.
Title: Re: GPC - C++ files
Post by: SnooPI on 2019-Apr-22
Yes, an option to directly create a folder like "MYPROG.translate" (and not just ""MYPROG.app") with only the C sources would be a good idea.

For Emscripten, I had a lot of problems (especially in 3D), but it seems that it works very well for others.
I think for 2D there is not too much problem.