Link to home
Start Free TrialLog in
Avatar of simonbennett
simonbennett

asked on

Silly but Simple...

I have just been tasked to write stored procedures on an db2/2 os2 box. These stored procs must be written in ANSI C.

For the easiest 5 0points you will ever get....

What is the 'best' proffesional C IDE? It must have a GUI, debugger, compiler and run on NT 4.0.

Any help would be appreciated....

Thanks In advance

SB
Avatar of simonbennett
simonbennett

ASKER

As soon as possisble??????

Thanks
Visual C++ by Microsoft
PinTail - are you 100 p/c certain that this will accept the ANSI C standard code and generate .c files?
ASKER CERTIFIED SOLUTION
Avatar of PinTail
PinTail
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Well, can I put it another way...

I already have some C functions that work as stored procedures - when I have opened them in other C++ IDE's (addmitedly freebies like Bloodshed C++), they will not compile because there is no void main() etc. I have a freebie ANSI C compiler for DOS that compiles the file but runs into memory problems when i incude windows.h et al (I think this is because of the DOS memory limitations), also my employer laughs at freebie software no matter how good.

So I'm thinking (admitedly as a c novice) that if I got a good commercial C compiler that would do the trick.

Pintail - Please let me know if this should work and those points are yours....

Thanks for your help..
You can compile a single module without the need for a main().

You should only need a mani() when you go to make the whole project into an executable.

I have verified the Visual C++ (MSDEV, whatever you wish to call it) will compile a single source file with no main.

You need only create a console application, add a single file to the project, edit the file, and compile ( not MAKE) this produces an object file.

Now, as far as debugging this file, you would need an application to call the functions within the file.

so add another file to the project, have this file contain a main(), and in main, call the functions in the other file, then you can debug to your hearts content.

Thanks for your help.