Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-03-2004, 06:54 AM   #1
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15
portable programming - any suggestions for kicking off a project?

Hi folks,

I am considering to kick off a project for medical data exchange which i would love to be cross platform. I reckon using c++, STL, CMake and doxygen, gcc for all platforms and Visual C++ for Win32.

I have experience with Visual C++ proprietary coding, but to me it looks like the better idea to start the thing on Linux (KDevelop) and port it to Win by means of CMake.

Basically, the project will rather be a messageing framework incorporating HL7, XML an DICOM Standards, apps will only be included for example.

Do you have any suggestions, do you know about common pitfalls I could avoid (by your advice ?

More detailed: ist there a more comprehensive tutorial or manual for CMake available? I checked the website and some vivisimoed sources on the web , but did not find the time-saver I am looking for .

I would be glad to receive your opinions on my intention. Any statement appreciated!


Old 09-03-2004, 01:13 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
I would be careful using Visual C++ for portable code, as it is not a fully standard-complient C++ compiler. For example, it does not ship with a standard template library (last I checked), and the template support isn't up to standard.

In my opinion, templates and the STL are a major part of C++ programming; they can save you hours of coding time whenever you have to manipulate a collection of data in any not-quite-trivial way.

My advice would be to look at using something like Qt (, which is a cross-platform development toolkit with its own IDE. The main downside to it is that you can't use it for commercial code under Windows without paying a licence fee.
Old 09-03-2004, 02:57 PM   #3
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Original Poster
Rep: Reputation: 15
Hi rjlee,

thanks for your thoughts - they help me making my mind up.

Yes, Visual is not the platform to generate the whole thing on from the scratch, you are right.

I reckon to build the framework on KDevelop/gcc and keep an eye on portability to Visual C++.

There is a project I admire very much - the dcmtk (, that gives you an industry strength DICOM messaging library on BSD license, and this is cross platform "like hell" - it impressed me. But, they did it the hard way, not using STL at all, all "elaborate" functions hand-knitted (strings, lists etc.) but it was started years ago.

In my Visual C++ .NET (2003) there is a fairly well implemented support of STL (announced as a "new feature"), and that made me think of using it.

Loads of projects are using the proprietary Visual C++ with MFC, and I would like "my" framework to smoothly integrate there too - so you can add GUIs with MFC as well as QT or KDE or GTK or ... or... - See, its a matter of freedom of choice.

No Microsoft Support will exclude the still popular Windows platforms - yes, I know the QT (expensive for MS-Windows) and GTK stuff, but - for the GUI Part, this is not "it", if you know what I mean.

Thank you loads!

G'night, Peter


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for beginner's project? microsoft/linux Programming 22 07-02-2005 07:54 AM
need help for grad project in programming corbis_demon Programming 1 07-11-2004 03:36 PM
programming suggestions? viniosity Linux - General 1 01-23-2004 02:22 PM
complicated mail retrieval / kicking - any suggestions? andrewlkho Linux - General 1 07-30-2003 01:39 AM
Request for honors project suggestions mrtwice Linux - General 1 06-05-2002 12:35 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration