Link to home
Start Free TrialLog in
Avatar of neester
neesterFlag for Australia

asked on

Newbie Question - Easy Points...

Hey Guys.

Just wondering a few things.
Points will be split, so please everyone answer if they can!

***
*** some quick info:
***
*** I am using WinXP, and want to compile to run on Windows.
*** (eventually want to compile for mac and linux too though)
***
*** I will start new questions for each part, if need be.
*** Let me know if you can offer more info and I will start a new question
***

1)
What is the BEST FREE C++ Software package to use.
When coding in C, I used PELLES C, which included the compiler, linker and builder...
Are there any good free C++ software packages of the same level?

2)
How can I make a GUI with C++...
What is the EASIEST way.
PLEASE either link me to a beginners tutorial, or write one up for me.

3)
Other than PLANET SOURCE CODE.
Are there any sites like: www.codewalker.com (thats for PHP, but its PERFECT)
But for C++??



I have tried google.
But there are soo many sites to browse through.
I figured I would cut my losses by asking professionals.
Thanks!
SOLUTION
Avatar of nonubik
nonubik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of neester

ASKER

>> nonubik <<
GREAT links!
Thanks for that.
Defiantly will help!
i will try the program soon!

Hope its good :)



>> mrwad99  <<
Your correct.
Im doing this for a learning process.
I already know VB, thats why I want to move to C++.
I want faster programs, and more control.

I actually do have VC++, but have heard that its "not real c++"...
Its like an "advanced" VB.

Thanks for the book reference - although I don't really have time to read a book.
I am at uni, and I am learnign C at the moment, so I can't read a C++ book.
Will confuse me for exams :P

And I dont have the time.

Your input will definatly get some points tho!
Thanks for that.
MFC - i am guessing is ONLY for Win32 compilations them...
How easy is it to port something coded for MFC to a Linux/Mac based system?

THANKS!!
Avatar of neester

ASKER

What I want is something like this:

http://openroad.org/school/gui/hellogui.html

That will work for me.
I tried putting that code into DEV-C++

Got these errors:

[Linker error] undefined reference to `GetStockObject@4'
[Linker error] undefined reference to `TextOutA@20'
Avatar of nonubik
nonubik

>[Linker error] undefined reference to `GetStockObject@4'
>[Linker error] undefined reference to `TextOutA@20'

Need to link against Gdi32.lib.
Avatar of neester

ASKER

>> Need to link against Gdi32.lib.
sorry but that means nothing to me :(


I found this page:
http://nuwen.net/gcc.html

I have to say - it is the BEST page i have read so far.
very simple.
Although nothing about GUI's really...
I'm not so familiar with DevC++, but at your project settings you must have a linker page. There at the 'additional objects/modules' you have to add the gdi32.lib to link with it (for the definitions of TextOut and GetStockObject are in the gdi32.dll).
Avatar of neester

ASKER

Ahh ok.
I think i found it.
Libraries?

Where is the file gdi32.lib
is it a standard C++ header?
or somethign else>
gdi32.lib should be in (one of) the library folder of the DevC++. It's not a header file, it's a standard import library file
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wxWidgets pack is in DEV-C++ IDE too (so you can try it on Windows).
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of neester

ASKER

>> Dariuzk << and >> itsmeandnobodyelse  <<
THANKS!

Great answers!!
I will check out those links later tonight!

:)

Really appreciate it!!

I have Visual Studio 6.
But I do have access to .Net if need be.
My Uni have it on the Lab PCs.


I was always under the impression that coding with Visual C++ was "easy" compared to real C++.
Anyway I will definalty follow up on all that.
But Personaly - I prefer using and supporting open source stuff.
So far Dev-C++ looks great!
>I was always under the impression that coding with Visual C++ was "easy" compared to real C++.

Visual C++ is just an integrated development environment for C++ under Windows. I doubt it's a 'false' C++ :o)
>> VC 7.2 is one of the best compilers at all and most compliant with C++ standard.
I think GNU C++ is most compliant with C++ standard. 'cos GNU allways cares about standards, I cann't say that about Microsoft.  
>>>> GNU allways cares about standards, I cann't say that about Microsoft

No, the problem isn't that MS doesn't care about standards but that they do try to make their own standards. But, AFAIK, C++ standard never was a target where MS was trying to create an own standard.

That might be a reason that MS C/C++ compilers always had a good reputition (Windows only of course) and newer VC 7 compilers are known to be compliant to C++ standard. VC6 was made 1997/1998 - prior to release of C++ standard. Therefore it isn't compliant in some points.

Regards, Alex
Answer 1 & 2
Use Qt
U can develop your GUI faster and the application will compile in all known platforms (Windows, Linux, Mac, SGI, etc.)

Visit the site www.trolltech.com for further help.

Regards
Rajeev
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial