Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: nodeleaf on May 02, 2016, 05:25:03 AM

Title: C++ compiler issue
Post by: nodeleaf on May 02, 2016, 05:25:03 AM
I have installed gcc.tcz extension (version 5.3.0) on stable picore 7 then test it as follows:

Code: [Select]
include <stdio.h>

int main (){
    printf("Hello World\n");
    return 0;
}

Code: [Select]
$ g++ -o hello hello.cpp
g++: error trying to exec 'as': execvp: No such file or directory

I just don't get it: anything missing to have such a simple test compiled?

Title: Re: C++ compiler issue
Post by: bmarkus on May 02, 2016, 05:46:37 AM

I just don't get it: anything missing to have such a simple test compiled?

Yes. Binutils. Error message says can't execute as.

And many other packages if you are building a bit more complicated program. gcc is just a part of the toolchain. Install compile-essentials.tcz
Title: Re: C++ compiler issue
Post by: nodeleaf on May 02, 2016, 06:26:59 AM
I had compile-essentials.tcz already installed but binutils.tcz was missing - now it compiles: thank you.


Title: Re: C++ compiler issue
Post by: tatemono on May 17, 2016, 12:44:28 PM
How about adding binutils.tcz to the dependency of compile-essentials.tcz?
Title: Re: C++ compiler issue
Post by: bmarkus on May 19, 2016, 01:56:51 AM
How about adding binutils.tcz to the dependency of compile-essentials.tcz?

Thanks, done.