1 (edited by name_scrubbed 2009-07-06 08:53:33)

Topic: Compiling source on debian lenny, unable to detect compiler [SOLVED]

Hi,

tried to compile teeworlds src with bam stuff.

I got gcc and cpp preinstalled probably and newest version.

Okay so. Trying to do this gives me an error i can't really understand:

q23p:/teeworlds/teeworlds-0.5.1-src# ../bam-0.2.0/src/bam server_release
--- Auto Configuration ---
[string "src/base.bam"]:597: no c/c++ compiler found
stack traceback:
  [string "src/base.bam"](597): Check method
    option = {...}
    settings = {...}
  [string "src/base.bam"](508): Autodetect method
    self = {...}
    (for generator) = 0x807ba00 (function (6))
    (for state) = {...}
    (for control) = 1.000000
    k = 1.000000
    v = {...}
  [string "src/base.bam"](523): Finalize method
    self = {...}
    filename = 'config.bam'
  default.bam(11): (null)
bam: error during build

what the hell?

2 (edited by datag 2009-07-03 17:26:43)

Re: Compiling source on debian lenny, unable to detect compiler [SOLVED]

q23p wrote:

I got gcc and cpp preinstalled probably and newest version.

Probably or properly wink ?

So following cmdline gives you this output?

dominik@pc3800 ~ $ LANG= g++
g++: no input files

Please provide some more information about your used system.


Edit: As I can see in your output you're trying this as root. Never do this for such things!

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

3

Re: Compiling source on debian lenny, unable to detect compiler [SOLVED]

cpp is NOT the c++ compiler, it is the C PreProcessor. Check that you have g++ installed.

Languages shapes the way we think, or don't.

4

Re: Compiling source on debian lenny, unable to detect compiler [SOLVED]

void wrote:

cpp is NOT the c++ compiler, it is the C PreProcessor. Check that you have g++ installed.

Yea thanks, i missed that one wink