LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-03-2004, 06:54 AM   #1
PBSchmidt
Member
 
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!

Bye,

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

Rep: Reputation: 67
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 (http://www.troll.no), 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
PBSchmidt
Member
 
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 (http://dicom.offis.de), 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
 
  


Reply


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


All times are GMT -5. The time now is 01:24 AM.

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