Skip to main content
gamedev.net
🔒 Locked

Windows Compiler

Started by Xgkkp Apr 17, 2002 at 5:38 AM 11 replies 400+ views
Original Post
Xgkkp
Xgkkp
ok, i want to be able to compile c++ code at college. now, i have permission to write and have c++ but the only problem is that the network will not allow running of any dos programs, genrally, not user specific. my question: is there a compiler that run''s under windows, not under dos? i can see no reason why not, as surely it can do the same job under a windows guise.
Xgkkp
Xgkkp
by the looks of it, no.

If i have read it correctly, it uses gcc to compile but just uses a minimal amount of external dlls hen compiled.

if gcc is the compiler (i think so but i''ve never really done dos line compiler running) then i would want gcc to be a win32 (or win16) program, so that it can run in a windows non-dos environment.
Yann L
Yann L
GCC is not a dos compiler. GCC is a multi-platform compiler, that has been ported to Win32, tons of different Unix flavors and also DOS (DJGPP).

Look here for more info.

/ Yann
Xgkkp
Xgkkp
I think there is some confusion, probably my fault

by saying gcc is a dos based compiler i don''t mean that it compiles dos programs.

i mean that it runs in dos, so with a machine that does not allow any kind of dos progams to be run it will not even run.

so that the actual gcc program itself would, say, run within a windows window.
Quantum
Quantum
quote:
Original post by Xgkkp
I think there is some confusion, probably my fault

by saying gcc is a dos based compiler i don''t mean that it compiles dos programs.

i mean that it runs in dos, so with a machine that does not allow any kind of dos progams to be run it will not even run.

so that the actual gcc program itself would, say, run within a windows window.


Wait..gcc has been ported to win32. Have you even tried it? Just because a program is running in a dos window does not mean it is a dos program. GCC should work fine. Unless ofcourse your college has blocked access to all programs that run in a dos box.. which is fairly stupid - because many c(++) compilers do.
dwarfsoft
dwarfsoft
quote:
Original post by Xgkkp
I think there is some confusion, probably my fault

by saying gcc is a dos based compiler i don''t mean that it compiles dos programs.

i mean that it runs in dos, so with a machine that does not allow any kind of dos progams to be run it will not even run.

so that the actual gcc program itself would, say, run within a windows window.

Just because it runs in console mode does not mean that it is not a Win32 program. I think you will find every Win32 compiler (the actual program) runs as a console program... Even MSVC++ has a commandline compiler that runs through the console. I assure you that most of these will definitely NOT run in DOS (If you restarted your computer in DOS mode) because they ARE Win32 programs.

The IDE takes the console data and shows it nice and pretty like, but they are all AFAIK commandline console based...

-Chris Bennett of Dwarfsoft - The future of RPGs GPA Thanks to all the goblins in the GDCorner niche
Xgkkp
Xgkkp
ok, i''d better rephrase.......

the college has blocked all dos and console applications.
dwarfsoft
dwarfsoft
then u are screwed, because all the compilers are one or the other (that I know of)... Or you could just find a way to hack around it... try batch files to see if you can actually get a console window...

You could always port gcc to Win32 API app ... But how would you compile it? Err...

-Chris Bennett of Dwarfsoft - The future of RPGs GPA Thanks to all the goblins in the GDCorner niche
Pouya
Pouya
Lol, you guys run WINDOWS in your college?
Gee, it''s time for a change.
Michalson
Michalson
quote:
Original post by Xgkkp
ok, i''d better rephrase.......

the college has blocked all dos and console applications.


Just how is it determining the difference between a console app and a windows app (I can understand DOS since the win32 apps have a header). Have you tried running an alien (program from outside the college) windows program on one of the machines. I''m guessing the machines are simply configured to prevent the user from running any program not a it''s list. Depending on the program you can get around this by renaming your app to an allowed program.

BTW: What protection is being used? NT user profiles, FoolProof, other?
Xgkkp
Xgkkp
sctually, i already have a kind of system in place... one of the programs running closes certain window title (e.g. anything with the word properties in it) so i have a prog in vb to automatically rename.

it cannot be a list, as i can run other programs.

any idea what the compiler for vb is? as the vb compile process crashes vb when it tries to run it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.