While trying to execute the simple hello world c++ program in V8 in ubuntu using the following command I am getting errors
the command is
g++ -Iv8/include hello_world.cpp -o hello_world.o
v8/out/native/obj.target/tools/gyp/libv8_base.a
v8/out/native/obj.target/tools/gyp/libv8_snapshot.a -lpthread
the error is
g++: error: v8/out/native/obj.target/tools/gyp/libv8_base.a: No such file or directory
g++: error: v8/out/native/obj.target/tools/gyp/libv8_snapshot.a: No such file or directory
Related
We are migrating some very simple C++ programs from AIX Server to Linux. The code is compiling fine on AIX server.
I tried to compile the C++ code in the Linux server. But the command line below failed:
g++ map2key.cpp -o map2key -nodefaultlibs -lstdc++ -lm -lgcc_s -lc -Xlinker -bmaxdata:0x8000000
With the error message:
/bin/ld: invalid BFD target `maxdata:0x80000000'
collect2: error: ld returned 1 exit status
The C++ program should be compiled and executable file should be generated
If you can help, I would very much appreciate it.
I am using g++ version 4.8.5. I am trying to compile my project using it. It compiles without a problem, when compiling directly from the terminal. But, when using a make file, it gives me following error, even though I am using the same option.
cc1plus: error: unrecognized command line option "-std=c++11"
What am I doing wrong here ?
Edit:
as requested, here's my makefile line:
main: main.cc
#g++ -std=c++11 main.cpp -o run
Try using g++'s absolute path:
main: main.cc
#/usr/bin/g++-4.8 -std=c++11 main.cpp -o run
I am trying to crosscompile simple hello world from Widows to Intel Edison via cmd. Instruction from here works perfectly. But I wont to use makefiles and where are not exists i586-poky-linux-make in this cross toolchain. So I decided to use mingw32-make from mingw32 binarys for Windows x86. Here is my simple makefile:
main: main.cpp
i586-poky-linux-gcc --sysroot=%POKY_HOME% main.cpp -o test -lstdc++ -O2
And... Iam getting an error
C:\Intel\iotdk-ide-win>mingw32-make
i586-poky-linux-gcc --sysroot=%POKY_HOME% main.cpp -o test -lstdc++
main.cpp:1:20: fatal error: iostream: No such file or directory
#include <iostream>
^
compilation terminated.
makefile:4: recipe for target 'main' failed
mingw32-make: *** [main] Error 1
How can I fix it? Thanks.
I've downloaded from github and built gcc. After that I've tried to compile a code with OpenMP:
../GCC/build/gcc/xgcc -B./../GCC/build/gcc/ -I./../GCC/build/x86_64-unknown-linux-gnu/libgomp -Wno-write-strings -O3 -Wall -fopenmp -lpng -o mandelbrot-omp mandelbrot-omp.cpp
Then I got the following error message:
xgcc: error: libgomp.spec: No such file or directory
I've checked and found out that libgomp directory contains the libgomp.spec file. The directory is included with -I option. What's wrong?
Im trying to install chef-solo on CentOS 6.3 x64 and when I run:
sudo chef-solo -c /etc/chef/solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz
I'm getting this output:
g++ -I. -ffast-math -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG \
-c -o gecode/int/extensional.o gecode/int/extensional.cpp
make[1]: Leaving directory `/tmp/chef-solo/gecode-3.5.0'
STDERR: {standard input}: Assembler messages:
{standard input}:13822: Warning: end of file not at end of a line; newline inserted
{standard input}:14946: Error: unknown pseudo-op: `.'
{standard input}:14946: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [gecode/int/extensional.o] Error 1
make: *** [compilelib] Error 2
---- End output of "bash" "/tmp/chef-script20120904-19809-1ofhwoq" ----
Ran "bash" "/tmp/chef-script20120904-19809-1ofhwoq" returned 2
I can install gecode from the RBEL6 repo without any problems but the cookbook attempts to install from source. I found this pull request on github which attempts to install from the RBEL repo but I got an error saying that the repository metadata couldn't be found. Anyone know what to do?
Since I have been searching for an answer to this, my findings were rather ... unsurprising.
I simply ran out of memory. I had to compile my files on another system with the same OS (copied over /tmp/chef-solo/gecode-3.5.0 to the box and just ran make) and synced the resulting folder back to run make install
Once the library is found the compile step is skipped and you should be good to continue.