Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: coder89 on May 16, 2008, 11:57:48 pm

Title: Compilation...
Post by: coder89 on May 16, 2008, 11:57:48 pm
Hello.
I have some problem with program compilation.
If i write in code block simple code:
Code
int main()
{
  return 0;
}
and i compile it on CodeBlock (Ubuntu 7.10 and AMD Athlon 1,2GHz processor - since 2002 year :P) it work on this machine well.
Now, If i upload this exetutable program on remote server Linux Debian with processor in i686 (Intel) construction it doesn't work and I need to compile this very simple program on this server from my *.cpp file...

So the question is:
How to compile any programs using CB on my Ubuntu 7.10 to run it on this server machine with Debian operating system??
Title: Re: Compilation...
Post by: Biplab on May 17, 2008, 07:41:07 am
Ubuntu 7.10 and Debian uses the different versions of C++ Runtime Library which requires you to recompile your code. In case you want to run your app on Debian you need to link your app against appropriate C++ runtime library.

Google it and you'll get more info on it.
Title: Re: Compilation...
Post by: coder89 on May 17, 2008, 09:03:54 am
Can you help me to find this information?? :( becouse i don't know english well and I don't know what i need to searching for... :( It's my beggining in programming...