have an exe file in windows

Q

questions?

I have a c program for a friend using windows.

How can I obtain an exe file that will work under windows?
I know exe files from cygwin will not work outside cygwin.

Any comments is appreciated.
 
F

Flash Gordon

questions? said:
I have a c program for a friend using windows.

How can I obtain an exe file that will work under windows?
I know exe files from cygwin will not work outside cygwin.

Any comments is appreciated.

If it is standard C just use any of the compilers that target Windows
such as MinGW, the free version of MS VC++, the one Jacob Navia does or
any of the others. If it is not standard C and was not originally
targeted for Windows you have a problem.

You would probably be better off in a Windows group, since we don't deal
with implementation specifics here or the specifics or particular tool
chains.
 
R

Randy Howard

questions? wrote
(in article
I have a c program for a friend using windows.

How can I obtain an exe file that will work under windows?

That depends.
I know exe files from cygwin will not work outside cygwin.

So one answer is for him to install cygwin.

Other answers are also out there, depending upon the program and
how dependent it is on POSIX or other unix-like features
provided by cygwin but not by a compiler/library setup outside
of cygwin. Nevertheless, the details are outside the scope of
this newsgroup. You might be better served in either one of the
unix or win32 programming groups, depending on the answers to
the above. None of how to compile and link binaries for win32
is on topic here.
 
Q

questions?

Thanks for reply.

But as a practical question, if you wrote a software in C and you want
it to be available not only in Unix/Linux, what's the "standard"
approach for people to obtain an exe file that people from Windows side
can run?
 
S

Sven Hesse

But as a practical question, if you wrote a software in C and you want
it to be available not only in Unix/Linux, what's the "standard"
approach for people to obtain an exe file that people from Windows side
can run?

Compiling the source with a windows/dos c compilier, like Visual C++,
MinGW, Borland C Builder, Watcom C, etc.
 
S

Shanmuhanathan T

questions? said,on 11/23/2005 1:19 AM:
Any of them are open source/free?

thanks
<OT>
try MinGW (or better still an IDE: Dev-C++)
google should be your friend :)
</OT>
Regards,
Shanmu.
 
R

Richard Bos

Randy Howard said:
questions? wrote


That depends.


So one answer is for him to install cygwin.

No, it isn't. One should not build one's programs to require their users
to install a whole load of extraneous software. That way lie Java,
dotnet, and PCode.[1]
The answer is for the OP to acquire a complete compiler (system) for
MS-Windows. My suggestion would be Dev-C++ (which, despite the name,
also does normal C); if you want an lcc-based suite, try, for example,
Pelles C.

Richard

[1] (And ZCode, but in that case there's a very good reason for it and
the burden is much smaller. And off-topic.
 
M

Mark McIntyre

questions? wrote


That depends.


So one answer is for him to install cygwin.

No, it isn't. [/QUOTE]

Actually, it is. Think about it - Randy said "one answer is"...
One should not build one's programs to require their users
to install a whole load of extraneous software.

Try running any of your favorite programmes without first installing
"a whole load of extraneous software" such as Linux, gcc, Windows,
MSVC runtimes, maybe boost or xerces runtimes, some device
drivers.....
 
R

Randy Howard

Richard Bos wrote
(in article said:
No, it isn't.

Yes, it is. Read what I wrote, not what your religion tells you
is there.
One should not build one's programs to require their users
to install a whole load of extraneous software.

Like DLL's or shared libraries?
That way lie Java, dotnet, and PCode.

Oh no, scary.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,938
Members
47,475
Latest member
NovellaSce

Latest Threads

Top