Hi Patrick,
Thank you for the reply.
I tried as suggested, I have created as hello.cpp file and tried to compile as suggested.
I can see hello64 executable being generated.
I am placing the output below for your reference.
hello32:
root@rv00343930-OptiPlex-210L:/home/rv00343930# g++ -Wall -Wextra -g -m32 hello.cpp -o hello32
In file included from hello.cpp:1:0:
/usr/include/c++/4.8/iostream:38:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
hello64:
root@rv00343930-OptiPlex-210L:/home/rv00343930# g++ -Wall -Wextra -g hello.cpp -o hello64
ldd hello32:
root@rv00343930-OptiPlex-210L:/home/rv00343930# ldd hello32
ldd: ./hello32: No such file or directory
ldd hello64:
root@rv00343930-OptiPlex-210L:/home/rv00343930# ldd hello64
linux-vdso.so.1 => (0x00007fff3ebfe000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f65ab270000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f65aaeab000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f65aaba4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f65ab594000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f65aa98e000)
root@rv00343930-OptiPlex-210L:/home/rv00343930/MatrikonOPC_UASDK_Linux/UA_SDK/Lib# g++ -Wall -Wextra -g -m32 hello.cpp -o hello32 -L/home/rv00343930/MatrikonOPC_UASDK_Linux/UA_SDK/Lib -lClientSdk -lStackWrapper -lGeneralSdk
In file included from hello.cpp:1:0:
/usr/include/c++/4.8/iostream:38:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
Please suggest me in this regard.
Regards,
Ajith
Edited by user Friday, June 5, 2015 7:02:11 AM(UTC)
| Reason: Not specified