Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 08:26
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How can I compile C++ code made in M$ Visual C++ 2008
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
bark_bark_bark

Joined: 05 Jun 2012
Posts: 934
Location: USA

PostPosted: Wed 04 Dec 2013, 16:59    Post subject:  How can I compile C++ code made in M$ Visual C++ 2008
Subject description: on Linux
 

I have been taking a high school elective that teaches C++ programming. I have to use the school's computer for all of my classes, which has Windows 7. I want to know if I could compile the little tiny programs I made with GCC. Also how do I modify a program that uses the windows gui, to instead use GTK 2/3 or QT 4/5?
_________________
......
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9034

PostPosted: Wed 04 Dec 2013, 18:12    Post subject:  

Well I use mingw on linux to cross compile windows programs which is not as awkward as it at first seems. You use the usual dev package to get gcc / make and so on and a mingw package for the win32 build tools. You can test the results in windows or wine.

As for porting to gtk/qt4 that would be a major rewrite though in theory do-able.

mike
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3437
Location: Ontario

PostPosted: Wed 04 Dec 2013, 20:15    Post subject:  

off topic , but it might be of interest...

For people learning C++ coding there is a free course available at
http://en.wikiversity.org/wiki/C%2B%2B/Introduction

Lesson 1 has the following program

Code:

#include <iostream>
 
using namespace std;
 
int main()
{
   cout << "Hello World!" << endl;
   cin.get();
 
   return 0;
}


Instructions to compile:

I was able to get geany to work in Precise Puppy and Wheezy Puppy
by doing the following....

1 ) Load devx file
2 ) Save the geany text to /root as example.cpp
3 ) Select 'Build' from menu ---> this runs c++ example.cpp -o example
4 ) Select 'Execute' from menu and terminal will launch automatically
and Hello World will show.

________________________________________________
Back to top
View user's profile Send private message 
bark_bark_bark

Joined: 05 Jun 2012
Posts: 934
Location: USA

PostPosted: Wed 04 Dec 2013, 20:46    Post subject:  

mikeb wrote:
Well I use mingw on linux to cross compile windows programs which is not as awkward as it at first seems. You use the usual dev package to get gcc / make and so on and a mingw package for the win32 build tools. You can test the results in windows or wine.


I wanted to compile natively on a linux system.

_________________
......
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0494s ][ Queries: 12 (0.0037s) ][ GZIP on ]