Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / C++ Compilers

Author
Message
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 19th Jun 2003 20:40
Hi,

I was just wondering what you guys used as a C++ compiler, and if possible a list of what I need to download. That might sound a bit odd, but there is a few where you have to install it manually (without an installer).

Any replies would be great,

Thanx.

P.S. I want a free compiler.
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 19th Jun 2003 20:51
www.bloodshed.net

Free, comes with IDE, all that can be said really.

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Jun 2003 22:11
Or buy the latest issue of PCPlus - they have CodeWarrior 6 on one of the Cover CDs
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 19th Jun 2003 23:41
Bloodshed's tool is excellent, I recommend it

--Mouse

Famous Fighting Furball
Eddie Gordo
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 20th Jun 2003 00:07
whats codewarrior 6 ive used bloodshed and recomend it also

In our hearts and minds we keep the powers of love, hope and the hidden powers of evil in which we can mold a hero or daemon of ourselves-Book of Enoch Chapter III
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 20th Jun 2003 00:27
Is Bloodshed that Dev C++?

is that good?

Thanx.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Jun 2003 01:18
Yes, on both counts.

CodeWarrior 6 - Java/C/C++ development system, Integrated IDE, Integrated debugger, but only has DX7 headers
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Jun 2003 10:43
CW6 does not install on a user account with XP Home

I wish the stupid software developers would learn to make thing useable. I mean its ok installing files to system32, but why not make a option in the program at start-up that checks for DLL's etc. at start up and if they are not there look in the local dir to the app?

The maybe i would buy some of the software!

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Jun 2003 14:43
and that is why i use InstallSheild Developer martyn hehee ... it automatically sets up the difference between the Windows

you can setup the lasted Dx header and such with CodeWarrior, or so i've been told - but i never figured out how.

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 15:53
Had no trouble installing CW6 on my XP Home machine - runs too!
No idea what I'm going to use it for though, as I've got VC and VC.NET

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 16:08
Quote: "Had no trouble installing CW6 on my XP Home machine - runs too!"


Try on a user account.

Then it wont

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 16:27 Edited at: 21st Jun 2003 16:28
I've got 5 different user (names) on this machine - you cant use the thing without selecting one... Or are you talking about account type ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 16:29
account types, limited user account or admin is the XP home options, i am a limited yser so i cannot change/add anything to C:/windows/

so installing is a pain!

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 18:12
Not surprising with a limited account - thats why its there : To prevent programs from being installed...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 22:02
onto the system32.

I can install a whole load of other things.

Anyway, under C:\Documents and Settings\Martyn there is a windows folder.

Surely a good system would be to have a system32 folder under there and when a prog loads a dll from c:\system32 it should look under C:\Documents and Settings\Martyn\windows\system32\ too.

Then you cannot affect the computer in any way, and have whatever you want installed without any possibility of buggering the main system32 folder.

See my thinking?

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 22:46
It would certainly be best to do that - unfortunately I dont see Microsoft incorporating in into Longhorn unfortunately...

Personally only Microsoft's updated files should install/be moved into SYSTEM or SYSTEM32, but unfortunately its not the case.

Like the registry - everything there should be in a .INI file - it would allow easy fixing, modification and backup.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 23:30
haha, why is there a windows folder there?

Nothing ever goes in there.

You would have though a compatability made could be implemented where you can run a win98 'shell' with the whole OS within a XP account.

If this happened MS would not have to worry about compatability issues they get sued on, casue if 98 shipped with all XPs. I mean only the runtimes and basic, XP works like a MS-DOS handling all file-system etc.

Oh well i had better stop now, getting too many useless ideas.

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 23:39
I just wish I had the ability to write operating systems - Bill Gates would wish he hadn't been born then...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 22nd Jun 2003 03:39
i'm sure it wouldn't be too great a challenge for you Toad, alot of kids i know generally get themselves a Linux Kernel and start tinkering to make thier own OS - just look at how many varieties of it are around.

i'm sure if you could rope someone else just as good as yourself into it you could make a pretty Decent OS , unless you wanted to make your own Kernel and an entirely new system altogether - there probably are some older systems like older MSDOS/WorkBench models which are currently available because they're no longer used you can use to learn how it was done
certainly be an interesting summer project eh hehee

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Jun 2003 03:59
It would have to be started from scratch - Linux isn't good enough to base a new OS on...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 22nd Jun 2003 04:37
:: waits for the Linux mob to take Toady away to sacrifice to thier Red Hat wearing Penguin God ::
hehee, ya know i wouldn't mind having a bash at a simple OS either - but i'm not sure if it wouldn't be easier to start on a simpler computer like an old 2x86
can just imagine sitting there tinkering away over an asm assembler and that proud moment when i finally get a Dot on the screen

something thats always make me think long and hard has been the "Chicken and the Egg" complex for OS's ... i mean in order to program an Operating System you need some form of interface to actually program upon, but to have an interface to program on you need an Operating System
So where the heck do you start if you don't have another computer or viable language to use ... and how do you create a Hard Disk Partition to hold all of your work if you don't have an OS or language to create such a partition?

:: starts to feel his head hurt again ::

man i've got a headache and i've not even started programming an OS yet lol

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Jun 2003 13:09
Indeed - its rather complicated.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Jun 2003 13:34
"It would have to be started from scratch - Linux isn't good enough to base a new OS on..."


and thats why mac and pc OS code have bsd parts from unix.lol

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Jun 2003 16:21
I very much doubt Windows has parts of Linux in it...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 22nd Jun 2003 16:36
Quote: "pc OS code have bsd parts from unix.lol"


well he did say PC not Windows ... however that said there are sections of Windows does have some Unix code in it, but that is only because it supports the Unix environment ... all Unix based OS's also have some Windows Core code for the exact same reasons.
Basically so they can all communicate with each other.

I wouldn't mind having a butchers at DOS 6.22's source to be honest, i mean although the model is genetically flawed perhaps it would be a good starting point because it is suppose to be the simplest.

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Jun 2003 16:53
Your probably thinking of the TCP/IP and/or IPX/SPX stack networking code...
I think you'll find that the Windows code for that is different to the Linux version, even though they produce the same (more or less) results.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Jun 2003 18:03
Thanks for the BloodShed link, its a nice lill' tool

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_103.zip
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 22nd Jun 2003 19:24
hi,

I've already found a problem, I bought a teach yourself book of C++ by Richard Riley and am understanding most of it but, none of the code given for examples work in Dev-C++ 5. I write the code into the compiler EXACTLY as shown, save it then Compile & run it. Now according to the book it should run perfect displaying "Hello World" in the prompt, but as you've probably guessed it didn't.

here is what i wrote:



I get three errors:

Line: File:
31 C:\Dev-Cpp\include\c++\backward\iostream.h
4 C:\Dev-Cpp\Examples\My Examples\hello.cpp
2 C:\Dev-Cpp\include\c++\backward\backward_warning.h:32

Message:
1: In file included from C:/Dev-Cpp/include/c++/backward/iostream.h
2: from C:/Dev-Cpp/Examples/My Examples/hello.cpp
3: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.

Please try this on yours, do you get errors?
anyone know why this happens or can work it out?

thanx.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Jun 2003 20:44
You have a book based on pre-standardised C++.

You are just getting a warning. Either ignore it, or change the '#include' statements as it suggested (iostream.h -> iostream)
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 23rd Jun 2003 00:09
right well I changed iostream.h to iostream as you said, ran it and then come up with more errors:

1. [Warning] In function `int main()':
2. `cout' undeclared (first use this
3. (Each undeclared identifier is

any suggestions on what to do?

btw, in Dev how do you ignore an error and carry on running the program?

thanx.

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Jun 2003 05:10
personally i generally use stdio.h over iostream.h
also make sure you've linked the directories properly, i know Dev-C should have automatically added your source diretory - but if it hasn't then using the '#include < >' declaration just wont work.

try finding the file you want an copying it to the directory then using '#include " "'

also you might want to change your return to either TRUE or void... and your not passing anything back i'd suggest





I pride myself that i don't kill...
well not without a good reason
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Jun 2003 10:20
Shady, after the includes, put the line 'using namespace std;'. That should sort it out. As I said, you appear to have an old book, so it's unlikely you'll get anything running without tinkering.



Still, despite the age of the book, stick to it until you have an idea of what is what ... then you can decide what libraries you want to use, as Raven has shown. Unfortunately, his example won't work

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Jun 2003 11:46
Ian i've never got printf( ) to work within C++ only sprintf( )
i know it should cause its a C function just it just refuses to.
Maybe thats just VC though

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 12:14 Edited at: 23rd Jun 2003 12:15
Sure you were writing a console application when using printf ?
It doesn't work when writing a Windows program (naturally)...

What would help is if you wrote a printf function (for Windows), that accepts the usual variable length parameters, and sticks it in a MessageBox as opposed to the console.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 23rd Jun 2003 13:14
Finally, I got it working with what Ian told me to do. Woohoo!
btw, what does "using namespace std;" do or mean?

I would just like to understand everything before I continue,

thanx.

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 13:29
It basically means use the standard namespace, ie its lets you use all standard commands (which you wouldn't normally have access to).

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Jun 2003 14:30
i dunno... that something that confuses me about C, how there are different things to do the same op at different times.
Confuzing as heck

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 15:04 Edited at: 23rd Jun 2003 15:05
I know - I try to avoid the namespace command in all cases - gets too confusing (plus prone to errors) otherwise...

I dont use C++ fully (the most I do is use classes, and very occasionally the template command), everything else is done using C.

Finally found my old Blitz Basic 2 review...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 23rd Jun 2003 15:50
right, I've got another sort of problem...

I run a piece of code and it runs through too fast to see it even though it prompts the user for some input.

Here's the code:



The prompt window flashes up for a second and then goes without the user pressing anything.

Any suggestions?

Thanx.

Martyn Pittuck
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 17:54
run the program through the cmd

Otherwise dont return anything ??

Or somming like that, i am kinda a C++ NewBi

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Jun 2003 22:32
Here you go MrTAToad, here's a 'MessageBoxf' function.

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Jun 2003 23:44
I think Raven might find that useful...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jun 2003 08:56
yup Raven does... thanks Ian

slowly, slowly, Raven Learny

I pride myself that i don't kill...
well not without a good reason
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jun 2003 11:23
Yes, you'll soon be allowed to actually use a keyboard...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 24th Jun 2003 12:27
=P I use CodeWarrior... VC++ is good and all but some people rely on what it does for you... makes it so you really can't code too well without the VC++ compiler...

EVERYONE LOVES THE PUFF!... =\
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jun 2003 13:12
i'm not sure if i'm ready for a real keyboard yet
i kinda like my tv tray with letters written on it

I pride myself that i don't kill...
well not without a good reason
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 24th Jun 2003 14:11 Edited at: 24th Jun 2003 14:19
for the ultimate C++ manual (and up to date too..works with dev C++) go to

www.BruceEckel.com

you can download two books on c++, these are not the normal trashy mispelt tutorials you often get on websites, these are top class books, If I ever come across the treeware versions I will definitley buy them

Mentor.

ps: you could base a OS around Dr DOS (like they did with DOS and windoze) so that you had some MS compatability, you can still download Dr DOS (I installed it few weeks ago for a guy who had a low spec ex works machine) and you could develop the OS on some of the older DOS compilers you can still find out there (like Borland), just the thing to while away a few years on

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jun 2003 15:34
if you could find a site with the original DOS source setup or something that would be a great help
i'm totally useless at searching the net, especially if i actually need something.

I pride myself that i don't kill...
well not without a good reason
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 24th Jun 2003 21:30
ok,

I think I've got the very basics of C++, (it's basically the same as DBPro just with more complex variables and stuff) anyways I want to be able to make windows stuff.

Does anyone know of a good book that could help me with this?

Thanx.

Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 24th Jun 2003 21:50 Edited at: 24th Jun 2003 21:57
ok...here you go, source for DOS

http://www.freedos.org/

free to distribute with your code (GPL), so you could build an OS on the top, and.....

http://www.glue.umd.edu/~nsw/ench250/dostutor.htm
http://home7.inet.tele.dk/batfiles/
http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html
http://www.calarts.edu/network/dos.html

then all you have to do is build a program over the top that adds icons to files and folders and deletes/moves/makes them when you select and click and you have the start of an operating system (esp if you can find DOS drivers for your hardware )

Shady: see the post 2 up, one of the best manuals on C++ I have seen.

Mentor.

ps: alas Dr DOS has been bought out and is no longer freeware as the older versions originaly where, but the aforementioned FreeDOS is

pps: added the DOS tutorial sites cos I am not sure if anyone still knows the DOS commands or how to use them with .bat files.

Login to post a reply

Server time is: 2024-11-23 09:23:43
Your offset time is: 2024-11-23 09:23:43