Hi,
Anyone try to create a simple project directry with the gpc.exe?
I create a new project, named it Hello.gbap.
Code in it:
WHILE TRUE
PRINT "Hello world",10,10
SHOWSCREEN
WEND
END
make a batchfile(StartConsole.bat) in the same directory from the project:
cd /d %~dp0
cmd.exe
make another batch(hello.bat):
"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\gpc" -N "C:\Users\sliver\Documents\GLBasic\Hello\Hello.gbap" -O"test" -D -X800 -Y600 -R60 -M0 -pWin32=1
console output is this:
C:\Users\sliver\Documents\GLBasic\Hello>"C:\Program Files (x86)\GLBasic_v11\Comp
iler\platform\gpc" -N "C:\Users\sliver\Documents\GLBasic\Hello\Hello.gbap" -O"te
st" -D -X800 -Y600 -R60 -M0 -pWin32=1
GPC - GLBasic Precompiler V.9.921 SN:c5e0e24b - "C:\Users\sliver\Documents\GLBas
ic\Hello\Hello.gbap"(1) error : GPC0001 syntax error
:/
it's just to play with, but now i will see it running :D
Yes I did sometime ago with a .txt renamed and it's fun... basically for newbies like me in programming understand this kind of things... Thanks to see the .txt in the folder of GLBasic I understood how works the Arduino Command Line compiler... and it's a good exercise for make thing on Linux too...
Playing it's fun :P :good:
ok, and what can i do to run it?
EDIT:
ahhhhh ok not the *.GBAP its the *.GBAS to compile...
Now i got the files... and how to create the exe-file?
Ah Ok doen`t works your code?¿...
I don't rebember too much, but I think I copied all the code have Gernnot in a txt into he Compiler folder?¿, it's a .txt on appears all paths for compile... when you press the Macro Buttons...
I think what I did works, but Schranz0r your are joking, asking to me?¿ I don't have any *love* idea about programming =D =D =D I think my codes are more "the rulette Russe" than technic :D :D :D
REALY? :D
no, i know that, but how to tell the gpc compiler to build this
Quote from: Schranz0r on 2013-Sep-16
REALY? :D
no, i know that, but how to tell the gpc compiler to build this
From my log screen when compile, I hope this helps you! ;)
LOOK for "CMD" Commands.
*** Configuration: WIN32 ***
precompiling:
CMD: >>"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\gpc.exe" -pWIN32=1 -pGLB_VERSION=11.322 -N"Path_RPG" -X1024 -Y768 -M0 -R60 -O"C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp" -L3 -EXPLICIT -P"C:\Users\Jordi\Desktop\Path_RPG_NT_013i" -V"000.001" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Path_RPG.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Control.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Disco.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Gameplay.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Rutinas_Graficas.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Sistema.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Touch.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Variables.gbas" "C:\Users\Jordi\Desktop\Path_RPG_NT_013i\Video.gbas"<<
GPC - GLBasic Precompiler V.9.840 SN:xxxxxxxx - 3D, NET
Wordcount:750 commands
compiling:
CMD: >>"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\Win32\Bin\g++.exe" -B"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\Win32\Bin" -pipe -O3 -w -c -x c++ -mwindows -I"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\Include" -I"C:\Users\Jordi\Desktop\Path_RPG_NT_013i" -D_WINDOWS_ -DNDEBUG -DHAVE_OPENGL "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_tempg.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp0.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp1.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp2.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp4.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp5.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp6.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp7.cpp" "C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp8.cpp" -DWIN32=1<<
linking:
CMD: >>"C:/Program Files (x86)/GLBasic_v11/Compiler/platform/Win32/Bin/g++.exe" -Wl,-Bdynamic,-enable-stdcall-fixup,--subsystem,windows -B"C:/Program Files (x86)/GLBasic_v11/Compiler/platform/Win32/Lib" -L"C:/Program Files (x86)/GLBasic_v11/Compiler/platform/Win32/Lib" -L"C:/Program Files (x86)/GLBasic_v11/Compiler/platform/Win32/Lib/DX7" -L"C:/Users/Jordi/Desktop/Path_RPG_NT_013i" gpc_tempg.o gpc_temp0.o gpc_temp1.o gpc_temp2.o gpc_temp3.o gpc_temp4.o gpc_temp5.o gpc_temp6.o gpc_temp7.o gpc_temp8.o "C:/Program Files (x86)/GLBasic_v11/Compiler/platform/Win32/Bin/icon.o" -lGLBasic -lpng -ldsound -ldinput8 -lwinmm -lole32 -lopengl32 -lvfw32 -lws2_32 -lgdi32 -lcomdlg32 -luser32 -lkernel32 -ladvapi32 -lshell32 -o"C:/Users/Jordi/AppData/Local/Temp/glbasic/output.obj"<<
CMD: >>"C:\Program Files (x86)\GLBasic_v11\Compiler\platform\Win32\Bin\strip.exe" --strip-all C:\Users\Jordi\AppData\Local\Temp\glbasic\output.obj<<