CODE
extern "C"{
#include
#include
}
extern "C" void XBoxStartup(){
{
debugPrint("hi there\n");
debugPrint("string=%s\n", "string");
debugPrint("number=%d\n", 123);
XSleep(10000);
XReboot();
}
}
This is the sample program provided with ColdReader's tutorial
i was getting errors so i tried the same program with kernelbound's setup
i was getting this error
g++: installation problem, cannot exec 'cc1plus': No such file or directory
so i mucked around the net for a while and ended up where i stared again at ColdReader's tut
on this reply
QUOTE
{{{Reply Number one by Songoku}}}
I do not know what to do. I tried the tutorial 10 times and it does not work for me. Please help me. When i use this tutorial, first it says it can not find cygintl-3.dll. After installing that it says it can not find cygiconv-2.dll. After installing this the following message is appearing: "g++: installation problem, cannot exec 'cc1plus': No such file or directory". What to do? i tried to use i386-pc-xbox-gcc.lnk, i386-pc-xbox-g++.lnk and i386-pc-xbox-windres.lnk from C:\cygwin\usr\local\openxdk\bin instead of gcc and g++... and all compiles fine but there is no .exe made. Please help
{{{Reply Number two by Songoku}}}
i have found the error. In the Project options you have to add the library files manually to the linker. Otherwise it will not work like i descriped at my last post.
I added all the files containt in this folders: C:\cygwin\usr\local\openxdk\lib and C:\cygwin\usr\local\openxdk\include\lib
Everything working Now i can start coding.
Bingo same error and the fix!
Un forutunately, he doesnt speak english very well and i kind of had to infer what he did to fix his error. What I did was take all of the .a files in "C:\cygwin\usr\local\openxdk\lib" and "C:\cygwin\usr\local\openxdk\include\lib" and toss 'em in "C:\Dev-Cpp\lib"
i close out of Bloodshed and pull it up again and what do u know? it works.
so i go on to a sample program provided by openXDK called reboot.c
im typling from a computer at my school so its not infront of me but i think the code is something like this :
CODE
#include
#include
void Xboxstartup()
{
XReboot()
}
It didnt work in a large way so it tried writing it as a C++ program like ColdReader
does using extern "C"
guess what?
g++: installation problem, cannot exec 'cc1plus': No such file or directory
wtf? I just fixed that....
obviously, g++ is the compiler and im assuming that cc1plus helps the compiler.
a quick glance thru Dev-Cpp shows that it has a file called cc1plus in one of its bin folders i think. So i try switching compilers back to Dev-Cpp's g++ but that doesnt work, not suprisingly.
I try re-compiling ColdReader's program, and that works!! but i cant compile anything else...
the tutorials all say to point dev-cpp at /usr/local/openxdk/bin/i386-pc-xbox-g++
and /usr/local/openxdk/i386-pc-box-gcc when in the compiler options.
oddly enough, i386-pc-xbox-g++ and i386-pc-xbox-gpp are both .lnk files...
.lnk's are shortcuts. So i try following them, and it doesnt do anything. although if u do a mouseover it says "/usr/bin/g++" or "/usr/bin/gcc" Im asumeing that the shortcuts are for linux or a type of file that is .lnk in linux.
why use shortcuts when u could just point at the actual program???
are g++ and gpp changed in OpenXDK??
why the fck does it only compile one program??
and a few questions not covered in the tutorials
Do you compile openxdk files as C++ or C?
what kind of file should they be made as? (.c or .cpp)
It sez on the openxdk website that the latest edition doesnt support C++