Fog Creek Software
Discussion Board

best choice

I just wonder which compiler is the best choice for 32-bit
development, and is at the same time easy to learn.
As I have mentioned before, I'm new to programming, so your help is welcome.


Wednesday, February 4, 2004

Assembly language.

Software Engineer
Wednesday, February 4, 2004

Visual Basic? What kind of programming you want to do?.

Wednesday, February 4, 2004

> 32-bit development

What is it you're looking to do that it needs to be 32 bit?
Wednesday, February 4, 2004

Windows, Mac, or *nix?  (=

Sam Livingston-Gray
Wednesday, February 4, 2004

I mean, programming windows-like applications but which can be portable. I'm on windows.

I'm having a problem, with structures in C, so I'm asking directly.
I have watcom c compiler, and it seems that the line
struct img_col c = {r,g,b}; is not correct it claims about constant expression (img_col is a structure already defined). So I modified it:
struct c; = r; = g; = b;
I wonder  if it is the same code!

thanks for helping me.

Wednesday, February 4, 2004

I bet it's a bug on the compiler.

I've been there..
Wednesday, February 4, 2004

You should be more explicit if you really want useful help.

Can you post some more code?

If the error says that the structure is already defined, it is likely related to a wider scope of code. Maybe you are including a file twice..

.NET Developer
Wednesday, February 4, 2004

If r g b are variables and not constants then your compiler is right.

I vaguely think the code with such autoinitialization using variables will compile in an ANSI C99 (latest version of C) compiler. (I remember that among the new C99 features is a bunch of whacked out stuff involving autoinits.) If the Watcom compiler is a recent version, you might just need to set a switch to accept C99 constructs. If not, then the change you made is the correct thing to do.

As usual, you should give more information about what this code is and where it came from and what you are trying to do if you want more useful advise...

Dennis Atkins
Wednesday, February 4, 2004

> I just wonder which compiler is the best choice for 32-bit
> development, and is at the same time easy to learn.

Coincidentally, I need to saw, uh, something.  I'm wondering which is the best saw to use, and the easiest one to learn how to use.

If I asked you that, you'd be justified in asking me to please be a whole lot more specific.  Like, am I sawing through a steel beam, or building an oak table, or putting a hole for a plug in a sheet of wall board?  Does "best" mean sharpest or cheapest or always available at my local Home Depot or what?  And who knows, maybe I think I want a saw but I actually need a drill.

Which is the best compiler?  Well, do you want to generate portable code?  Highly efficient code?  Do you want an integrated development environment?  Are you writing code for school or work or just for fun?  Are you on a budget?

I used to work for WATCOM, and lemme tell ya, that thing generates tight, tight, tight code but is not exactly the most user-friendly compiler I've ever used.  Tell us what your goals are and we can tell you what kind of tools might work.

Eric Lippert
Thursday, February 5, 2004

I'm in the same boat as the original poster.
...Just begining, but with dreams...
Using the saw example... I want to know how to build a house, not an apartment, not a factory, but a simple run of the mill house (well houses aren't that simple to build...I build them).
Maybe I'd like to design a cad app to help with the construction, or maybe a custom backup app. I would like the program to run well (as in faster and more stable), be self sufficient (as in not need to many external libs) and be created with a development environment that doesn't take as long to learn as the programming language itself.
Oh, and I'm thinking about c and the variations thereof.
So, what should I go with?
Borland Products
Visual Series
GNU (or variations)

Saturday, February 7, 2004

*  Recent Topics

*  Fog Creek Home