Samuel Thibault | 1 Feb 11:18 2008

swprintf() & friends

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?

Samuel

Corinna Vinschen | 1 Feb 11:32 2008

Re: swprintf() & friends

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

Richard Head | 1 Feb 12:38 2008

Help with Make

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)

Anik Pal | 1 Feb 13:04 2008
Picon

Using msvcrt.lib from cygwin gcc

What will be the make file syntax to use msvcrt.lib to compile my source
code in cygwin gcc?

Anik Pal
Vadodara, India

Alberto Luaces | 1 Feb 13:07 2008
Picon

Re: Help with Make

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)

Richard Head | 1 Feb 13:11 2008

Re: Help with Make


> 
> 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!)

Alberto Luaces | 1 Feb 13:25 2008
Picon

Re: Help with Make

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?

Dave Korn | 1 Feb 13:28 2008

RE: Help with Make

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....

Alberto Luaces | 1 Feb 13:30 2008
Picon

Re: Using msvcrt.lib from cygwin gcc

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.

Richard Head | 1 Feb 14:03 2008

Re: Help with Make

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


Gmane