Author Topic: Compilation...  (Read 2704 times)

Offline coder89

  • Single posting newcomer
  • *
  • Posts: 4
Compilation...
« 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??

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Compilation...
« Reply #1 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.
Be a part of the solution, not a part of the problem.

Offline coder89

  • Single posting newcomer
  • *
  • Posts: 4
Re: Compilation...
« Reply #2 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...