1 Feb 2008 11:18
1 Feb 2008 11:32
Re: swprintf() & friends
Corinna Vinschen <corinna-cygwin <at> cygwin.com>
2008-02-01 10:32:57 GMT
2008-02-01 10:32:57 GMT
On Feb 1 10:18, Samuel Thibault wrote: > Hello, > > We noticed that there is no swprintf and friends on cygwin (while mingw > has them), did anybody work on this or does it have to be done? Newlib is missing these functions. I'm not aware that somebody is working on adding them. Corinna -- -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
1 Feb 2008 12:38
Help with Make
Richard Head <richard.head <at> gefanuc.com>
2008-02-01 11:38:30 GMT
2008-02-01 11:38:30 GMT
Hi, first post in here.
Im not a very experienced C programmer, and Im fiddling with make. I
have the following make file (entitled Makefile):
fusionTK.exe : main.o fusionFileIO.o fusionAlgorithms.o
gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe
main.o : main.c fusionDefs.h
gcc -c main.c fusionDefs.h
fusionFileIO.o: fusionFileIO.c fusionDefs.h
gcc -c fusionFileIO.c fusionDefs.h
fusionAlgorithms.o: fusionAlgorithms.c fusionDefs.h
gcc -c fusionAlgorithms.c fusionDefs.h
Which as far as I can tell is all well and good, but when I execute
make, it comes back with the error:
"make: *** No rule to make target `main.c', needed by `main.o'.
Stop."
have I put something in the wrong place?
Im running this on WinXP pro with cygwin installed.
Also, if I remove the main.c and fusionDefs.h from the main.o
dependencies, it runs the command associated with main.o :"gcc - c
main.c fusionDefs.h" and then complains that the gcc command is not
found. I can quite happily run GCC directly from the command line.
(Continue reading)
1 Feb 2008 13:04
1 Feb 2008 13:07
Re: Help with Make
Alberto Luaces <aluaces <at> udc.es>
2008-02-01 12:07:48 GMT
2008-02-01 12:07:48 GMT
El Friday 01 February 2008 12:38:30 Richard Head escribió: > Hi, first post in here. > > Im not a very experienced C programmer, and Im fiddling with make. I > have the following make file (entitled Makefile): > > fusionTK.exe : main.o fusionFileIO.o fusionAlgorithms.o > gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe > > main.o : main.c fusionDefs.h > gcc -c main.c fusionDefs.h > > fusionFileIO.o: fusionFileIO.c fusionDefs.h > gcc -c fusionFileIO.c fusionDefs.h > > fusionAlgorithms.o: fusionAlgorithms.c fusionDefs.h > gcc -c fusionAlgorithms.c fusionDefs.h > > Which as far as I can tell is all well and good, but when I execute > make, it comes back with the error: > "make: *** No rule to make target `main.c', needed by `main.o'. > Stop." > > have I put something in the wrong place? > > Im running this on WinXP pro with cygwin installed. > Also, if I remove the main.c and fusionDefs.h from the main.o > dependencies, it runs the command associated with main.o :"gcc - c > main.c fusionDefs.h" and then complains that the gcc command is not > found. I can quite happily run GCC directly from the command line.(Continue reading)
1 Feb 2008 13:11
Re: Help with Make
Richard Head <richard.head <at> gefanuc.com>
2008-02-01 12:11:53 GMT
2008-02-01 12:11:53 GMT
> > Are you running make from Cygwin's shell or from the Windows command line > shell instead? Windows Command Line. Ive just tried it in the Cygwin shell and I get the same first error. The 2nd has gone away (It can find gcc now!)
1 Feb 2008 13:25
Re: Help with Make
Alberto Luaces <aluaces <at> udc.es>
2008-02-01 12:25:25 GMT
2008-02-01 12:25:25 GMT
El Friday 01 February 2008 13:11:53 Richard Head escribió: > > Are you running make from Cygwin's shell or from the Windows command line > > shell instead? > > Windows Command Line. > > Ive just tried it in the Cygwin shell and I get the same first error. The > 2nd has gone away (It can find gcc now!) Good. It will save you from trouble to execute Cygwin programs from the Cygwin shell. Now for the second: is main.c in the same directory as Makefile?
1 Feb 2008 13:28
RE: Help with Make
Dave Korn <dave.korn <at> artimi.com>
2008-02-01 12:28:19 GMT
2008-02-01 12:28:19 GMT
On 01 February 2008 12:12, Richard Head wrote:
>> Are you running make from Cygwin's shell or from the Windows command line
>> shell instead?
>
> Windows Command Line.
>
> Ive just tried it in the Cygwin shell and I get the same first error. The
> 2nd has gone away (It can find gcc now!)
So, that means the cygwin bin dir isn't in your windows PATH setting.
As to the first error, can you confirm that main.c and the makefile are
actually in the same directory, and that you're cd'ing into that directory
(rather than e.g. using syntax like "make -f ./path/to/Makefile").
cheers,
DaveK
--
--
Can't think of a witty .sigline today....
1 Feb 2008 13:30
Re: Using msvcrt.lib from cygwin gcc
Alberto Luaces <aluaces <at> udc.es>
2008-02-01 12:30:12 GMT
2008-02-01 12:30:12 GMT
El Friday 01 February 2008 13:04:02 Anik Pal escribió: > What will be the make file syntax to use msvcrt.lib to compile my source > code in cygwin gcc? I think you have to add the flag -mno-cygwin to your compiler command line.
1 Feb 2008 14:03
Re: Help with Make
Richard Head <richard.head <at> gefanuc.com>
2008-02-01 13:03:25 GMT
2008-02-01 13:03:25 GMT
How stupid of me. Main.c was in the wrong directory *slaps forehead*. As for the gcc command not being found, that wasnt in the path, but now it is, and its still not working. Odd. Maybe Ill just stick with the cywin shell
RSS Feed