Score: 0.00 Votes: 0
rate this

CygWin Help!

Starter: [Deleted] Posted: 21 years ago Views: 777
#9166
Anyone know how the CygWin Linux emulator works, i mean the basic commands work.
im not a linux specialtst but i think commands like "make" and "install" should be
standard on a Linux emulator
if anyone know how to compile files with CygWin or so...."help"

thanx..
#9167
Lvl 25
I only have basic understanding of linux, most programs should compile with the "make config" or "./configure" and then "make install"

Something like that.. I don't know if the Linux emulator supports the certain libs to compile and program.. all those anoying dependencies..
#9168
ok hehe thanx
#9169
Lvl 25
Tel me if it works!
#9170
hehh what i figured out so far is that there are no "make"commands or compilers/tools in this version thats why it wont work..
i wanted to use Cygwin for compile/run a linux program on my winxp comp..
btw do you anything about compileing in win, ex visual studio?
#9171
Lvl 15
huh still on that stuff.
Im still Dizzy from last night when we (you) tried to figure that out... =)
#9172
getting pretty mad at this shit....=)
i just cant compile :P
#9173
Lvl 22
oke first tell us wtf you want to do :P
You say you want to compile something, what?? What programing language is it??
And cygwin can compile c stuff and can even make exe for you so you can use it in windows in stead of linux. And yes most linux programs will nog work in cygwin that's becose cygwin can do all things, it works with dll's (windows crap). But you can compile c in cyginw as i sad before.
And about compiling in windows, everything can be compiled as long as you know what you compiling and for what platforme it is.
Als even sometimes if it is a linux prog it can be adjusted to work on windows so.

If you got a question ask in details that way i can anwser you better.
#9174
hehe ok, first of all /me newbie with c++ and shit..
ok: there is a program written in c that i want to compile and run,
its a MUD server, and i got the source so all i have to do is compile the source and run the program..
so my question is: what commands do i use? in Cygwin for compileing and running the program?
#9175
Lvl 12
This is from the Cygwin website, don't know if it's any help to you or not:



Why is make behaving badly?

First of all, if you are using `make -j[N]', then stop. It doesn't work well.

Otherwise, read on...

Make has two operating modes, UNIX and WIN32. You need to make sure that you are operating in the right mode.

In UNIX mode, make uses sh.exe as a subshell. The path list separator is ':', '\' is the escape character, POSIX paths are expected, and Cygwin mounts will be understood. Use this for Makefiles written for UNIX.

In WIN32 mode, make uses the "native" command shell (cmd.exe or command.com), with all the restrictions that implies. The path list separator is ';', the path separator is '\', "copy" and "del" work, but the Cygwin mount table is not understood. Use this for nmake-style Makefiles.

The default mode for the Net Release of make (the one installed by setup.exe) is UNIX. The default mode for commercial releases to Redhat (formerly Cygnus) customers is WIN32.

You can override the default by setting the environment variable MAKE_MODE to "UNIX" (actually case is not significant) or "WIN32" (actually anything other than "UNIX". You can also specify the options --unix or --win32 on the make command line.



Hope that helped
#9176
hehe thanx for all the help guys, i solved the prob,( im sooo stupid) :P
i just did a full install of Cygwin and selected all files..and it worked.
now i can compile :P weeee!!

thanx
#9177
Lvl 22
oke nice to hear, but why compile with cygwin?

It's a c code for windows write? If you want to know how to compile c code that is writen for windows let me know and i give you a link to a nice windows c compiler, free compiler nice one.

#9178
Lvl 21
*scratching my head* Glad i could help guys! damn i need to work up my programming skills!
#9179
Lvl 15
Ahhh Moonie just give up it wont work REALIZE!!