xboxscene.org forums

Author Topic: There Is No Compiler  (Read 62 times)

MercuryTheWhite

  • Archived User
  • Newbie
  • *
  • Posts: 21
There Is No Compiler
« on: September 29, 2005, 11:11:00 AM »

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

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++
Logged

MercuryTheWhite

  • Archived User
  • Newbie
  • *
  • Posts: 21
There Is No Compiler
« Reply #1 on: September 29, 2005, 02:04:00 PM »

happy.gif

To answer some of my questions, IF you get this error, point Dev-Cpp at /cygwin/bin/g++ and /cygwin/bin/gcc  
try adding the librarys across tho, too.
Logged

bucko

  • Recovered User
  • Hero Member
  • *
  • Posts: 4255
There Is No Compiler
« Reply #2 on: September 30, 2005, 01:19:00 PM »

sweet glad you fixed it.
Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
There Is No Compiler
« Reply #3 on: October 01, 2005, 09:40:00 AM »

no.

It's for defining external resources you are going to link to (that were compiled in C), while in C++.  In C++ names normally get mangled to depict information about the size of their parameters and stuff, so you have to tell the compiler "when linking look for the C-like name for this resource"
Logged