I am a C++ newbie. I have successfully made a project in Eclipse. But now I would like to use the program on another linux system and I don't know how to accomplish this.
I developed on an Ubuntu 13.04 (beta) 64bit system and would like to run the program on an Ubuntu 12.04 32bit system.
Eclipse creates a Debug folder which contains an executable file which I can execute from the terminal and works on the system which I developed on, but does it does not work on the other system. I just realized at very least the 64/32bit issue could cause this. Figuring out how to compile for another architecture is something I need to do.
The project makes use of a couple libraries which I am sure is complicating the matter too. I assume I will have to install these libraries on the other system? I would like to do as little of that as possible, but it isn't a huge deal.
I could compile on the other system, but this would not be ideal, nor would it teach me how to share binaries with other people in the future.
My includes for the project look like
and I get two interesting blocks in the Eclipse console when I build the project
12:10:21 **** Incremental Build of configuration Debug for project ki ****
Building file: ../src/ki.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/local/include/Poco -I/usr/include/c++/4.7/ -I/usr/include/c++/4.7.2/ -I/usr/include/glib-2.0
-I/usr/include/glibmm-2.4 -I/usr/include/libxml2 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml++-2.6
-I/usr/local/lib -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/ki.d" -MT"src/ki.d" -o "src/ki.o" "../src/ki.cpp"
between the two blocks are some warnings which don't seem to be relevant.
Finished building: ../src/ki.cpp
Building target: ki
Invoking: GCC C++ Linker
g++ -L/usr/local/lib/ -L/usr/include/libxml++-2.6/ -L/usr/include/ -L/usr/lib/ -L/usr/local/include/Poco/
-o "ki" ./src/ki.o -ltwitcurl -lglibmm-2.4 -lxml2 -lxml++-2.6 -ltidy -lPocoNet -lcurl -lPocoUtil -lPocoFoundation
Finished building target: ki
Input on how to achieve my goals is appreciated. Thank you for your time.