cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Will the compiled version run in Ubuntu
Will the compiled version run in Ubuntu 12.04?
Dec 16, 2015 at 3:12pm UTC
ephraimr
(114)
Made a simple c++ program and compiled in Ubuntu 14.04
Will the compiled version run in 12.04?
Dec 17, 2015 at 1:50am UTC
kbw
(9488)
Yes. You'll need dependent packages installed and so on.
Last edited on
Dec 17, 2015 at 1:51am UTC
Dec 17, 2015 at 2:29pm UTC
ephraimr
(114)
kbw, Which ones?
Dec 18, 2015 at 12:43pm UTC
dhayden
(5798)
Made a simple c++ program and compiled in Ubuntu 14.04
Will the compiled version run in 12.04?
Maybe, maybe not. If your program accidentally relies on undefined behavior then it might not. You'd be surprised how many programs work by accident.
Dec 18, 2015 at 3:13pm UTC
kbw
(9488)
Which ones?
It depends on what you created. Run ldd on with your program as the argument. That'll tell you what libraries it links with. The rest ... I dunno; again, it depends on what you created.
Dec 19, 2015 at 3:22am UTC
bagustris
(1)
By default, yes. I have try it.
Ubuntu equipped with gcc compiler as many Linux distribution, and it is one of the best.
Dec 19, 2015 at 4:35am UTC
ephraimr
(114)
Thanks, mates
Topic archived. No new replies allowed.