Re: gcc: problem with scanf/printf with 64 bit integers on cygwin with -mno-cygwin

2009-02-25 Thread Larry Hall (Cygwin)
On 02/25/2009, Helmut Brandl wrote: I use the type "unsigned long long" and "long long" to get 64 bit integers on gcc. For reading and writing I use the formatting e.g. unsigned long long u64; u64 = ...; printf("a 64 bit integer %llu\n", u64); This has worked up to now on all systems u

gcc: problem with scanf/printf with 64 bit integers on cygwin with -mno-cygwin

2009-02-25 Thread Helmut Brandl
I use the type "unsigned long long" and "long long" to get 64 bit integers on gcc. For reading and writing I use the formatting e.g. unsigned long long u64; u64 = ...; printf("a 64 bit integer %llu\n", u64); This has worked up to now on all systems using gcc except on cygwin compiling wi

Re: GCC: problem with library search path when targeting mingw

2006-08-15 Thread Damien Fouilleul
I'm not sure that I agree with your assements, /usr/lib as always been available (at least displayed) as a default search path in 'print-search-dirs' even when using the -mno-cygwin switch, but for some reason, has always been ignored when linking for MinGW. I think the problem has to do with

GCC: problem with library search path when targeting mingw

2006-08-14 Thread Damien Fouilleul
hello, I'm a big fan of cygwin and I use it a lot to compile mingw apps, however with the latest mingw-runtime, I'm having trouble running configure scripts successfully as test such 'dlopen() in -ldl', which used to fail for mingw target (as expected) now succeeds. This causes havoc in compilati

Re: Help: gcc problem in Cygwin!

2006-08-02 Thread Stein Somers
Frank, you could run make with the -n flag to see what commands it issues (even "hidden" command lines). This generates enormous amounts of output for all commands far beyond the one that is bothering you now, so run for instance: make -n 2>&1 | less If you're lucky, you'll see cygpat

Re: Help: gcc problem in Cygwin!

2006-08-02 Thread Larry Hall (Cygwin)
. Reformatted. Frank C. wrote: --- "Larry Hall (Cygwin)" wrote: ^^^ . Thanks. Frank C. wrote: Dear all, I've been trying to install a software on Cygwin under Windows X

Re: Help: gcc problem in Cygwin!

2006-08-01 Thread Frank C.
Larry, Thanks for your quick reply! I installed the latest version of Cygwin, and almost all packages which includes 'binutils' package. I checked and found 'ld' in the path: (1) cygwin\bin\ld.exe (678 kb), and (2) cygwin\usr\i686-pc-cygwin\bin\ld.exe (1 kb). Is this normal? I did a quick search

Re: Help: gcc problem in Cygwin!

2006-08-01 Thread Larry Hall (Cygwin)
Frank C. wrote: Dear all, I've been trying to install a software on Cygwin under Windows XP, but without any success. The steps are (1) './configure', and (2) 'make'. I had following error message after running 'make'. cygpath: can't convert empty path /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../.

Help: gcc problem in Cygwin!

2006-07-31 Thread Frank C.
Dear all, I've been trying to install a software on Cygwin under Windows XP, but without any success. The steps are (1) './configure', and (2) 'make'. I had following error message after running 'make'. cygpath: can't convert empty path /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libc

Re: gcc problem - cygwin-1.5.19-4

2006-01-31 Thread COLLETTE Yann
rror: expected primary-expression before "int" TestSpeedMetric.cpp:155: error: expected `;' before "int" make[1]: *** [TestSpeedMetric] Error 1 If I do a new "make", everything works fine. This is not a Makefile problem, but more a gcc problem. Gcc ve

Re: gcc problem - cygwin-1.5.19-4

2006-01-31 Thread Gerrit P. Haase
r: expected `;' before "int" > make[1]: *** [TestSpeedMetric] Error 1 > If I do a new "make", everything works fine. This is not a Makefile > problem, but more a gcc problem. Gcc version is 3.4.4 (cygwin special). I don't think so. Maybe the header is a

gcc problem - cygwin-1.5.19-4

2006-01-23 Thread COLLETTE Yann
TestSpeedMetric] Error 1 If I do a new "make", everything works fine. This is not a Makefile problem, but more a gcc problem. Gcc version is 3.4.4 (cygwin special). Your sincerely, Yann COLLETTE -- Disclaimer Ce message ainsi que les eventuelles p

RE: gcc problem

2004-03-02 Thread Gareth Pearce
> > g++ is in a separate package named gcc-g++, be sure you have installed > this too. Then you need to link against libstdc++ when using gcc as > driver: > gcc -o gtest gtest.cc -lstdc++ > or you use g++ as driver which includes libstdc++ automatically: > g++ -o gtest gtest.cc Just want to d

Re: gcc problem

2004-03-02 Thread Gerrit P. Haase
Hello Rainer, you wrote: > I've installed the latest version of cygwin (as of today 2.03.04). My PC is > running Windows 2000 with service pack 4. Installation is done on my loca > drive d:. I tried a small "C++" and failed, the reason is totally unclear to > me. > The program is: [...] > The er

Re: gcc problem

2004-03-02 Thread Laurent Vaucher
The error message is: $ gcc -o gtest gtest.cc /cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x4d):gtest.cc: undefined reference to `std::ios_base::Init::Init[in-charge]()' /cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x68):gtest.cc: undefined reference to `std::ios_base:

gcc problem

2004-03-02 Thread Lauer Rainer
Hi Gents, I've installed the latest version of cygwin (as of today 2.03.04). My PC is running Windows 2000 with service pack 4. Installation is done on my loca drive d:. I tried a small "C++" and failed, the reason is totally unclear to me. The program is: #include using namespace std; int main(

Re: gcc problem in my installation of cygwin

2003-11-24 Thread Larry Hall (RFK Partners, Inc)
At 11:26 PM 11/23/2003, Nikhil Bhargava you wrote: >hello Ms. Larry, That would be more properly phrased as 'Mr. Hall' but I don't require such formalism. 'Larry' is fine. >I am thankful for the help. I didnot tried google as i thought i wouldnot be able to >find this problem. I wil be care

Re: gcc problem in my installation of cygwin

2003-11-23 Thread Nikhil Bhargava
hello Ms. Larry, I am thankful for the help. I didnot tried google as i thought i wouldnot be able to find this problem. I wil be careful in future and will go throughthe link you have quoted. nikhil - Original Message - DATE: Sun, 23 Nov 2003 13:45:00 From: Larry Hall <[EMA

Re: gcc problem in my installation of cygwin

2003-11-23 Thread Larry Hall
At 12:05 PM 11/23/2003, Nikhil Bhargava you wrote: >hello friends, > >I have installed latest version of cygwin and also set the path accordingly. > >But while compiling my C code, I am getting following error > >$ gcc timer.c >/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/ >find -luser32 >collect2: ld ret

gcc problem in my installation of cygwin

2003-11-23 Thread Nikhil Bhargava
hello friends, I have installed latest version of cygwin and also set the path accordingly. But while compiling my C code, I am getting following error $ gcc timer.c /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/ find -luser32 collect2: ld returned 1 exit status Please help me rectify the problem. ni

gcc problem

2003-09-14 Thread swa004
Hi, I just installed Cygwin on my XP. When I tried to compile my first C program, ld complains about some run time library linking problem: $ gcc a.c /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(pseudo-reloc.o)(.te xt+0 x49): undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST__' /usr/

Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin

2003-03-31 Thread Shankar Unni
Rob Siklos wrote: Does anyone know if Windows provides something similar? If so, how would I access it from my program? The best thing would be to visit http://msdn.microsoft.com and read the library (the Win32 SDK). There have also been various attempts to provide "very thin" (usually partial

Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin

2003-03-31 Thread Rob Siklos
lor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 10:41 AM Subject: Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin > On Mon, Mar 31, 2003 at 10:36:40AM -0500, Rolf Campbell wrote: > >Rob Siklos wrote: > >>Hello,

Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin

2003-03-31 Thread Christopher Faylor
On Mon, Mar 31, 2003 at 10:36:40AM -0500, Rolf Campbell wrote: >Rob Siklos wrote: >>Hello, >> >>I am trying to compile the following trivial program: >> >> >>#include >>#include >> >>int main() >>{ >> struct timeval tv; >> gettimeofday(&tv, NULL) ; >> printf("%ld %ld\n", tv.tv_sec, tv.tv_u

Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin

2003-03-31 Thread Rolf Campbell
Rob Siklos wrote: Hello, I am trying to compile the following trivial program: #include #include int main() { struct timeval tv; gettimeofday(&tv, NULL) ; printf("%ld %ld\n", tv.tv_sec, tv.tv_usec); return 0; } When I use gcc with no options, everything works fine. Howeve

1.3.22: (gcc) problem using gettimeofday with -mno-cygwin

2003-03-31 Thread Rob Siklos
Hello, I am trying to compile the following trivial program: #include #include int main() { struct timeval tv; gettimeofday(&tv, NULL) ; printf("%ld %ld\n", tv.tv_sec, tv.tv_usec); return 0; } When I use gcc with no options, everything works fine. However, if I use the

Re: gcc problem with filename case insensitivity

2003-02-25 Thread David Starks-Browning
On Monday 24 Feb 03, Elfyn McBratney writes: > > ... > > and I compile with "gcc -Imy/include/dir sourcefile.c" where > > String.h lives in my/include/dir. > > > > GCC uses my/include/dir/String.h to satisfy the directive. > > I just tried this with "check_case:strict" in my CYGWIN environment >

Re: gcc problem with filename case insensitivity

2003-02-24 Thread Alex Vinokur
"David Starks-Browning" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings, > > I have a problem which I realise comes from Windows' being > case-insensitive with filenames. Even so, maybe someone here knows > how to solve it. > > Suppose I have this source file: > > #include

Re: gcc problem with filename case insensitivity

2003-02-24 Thread Elfyn McBratney
> I have a problem which I realise comes from Windows' being > case-insensitive with filenames. Even so, maybe someone here knows > how to solve it. > > Suppose I have this source file: > > #include > #include "String.h" > > int main() { > // some stuff > } > > and I compile with "gcc -Imy/incl

gcc problem with filename case insensitivity

2003-02-24 Thread David Starks-Browning
Greetings, I have a problem which I realise comes from Windows' being case-insensitive with filenames. Even so, maybe someone here knows how to solve it. Suppose I have this source file: #include #include "String.h" int main() { // some stuff } and I

Re: gcc problem?

2002-11-25 Thread CHAUVIERE Jean-Raymond
I didn't program in C for a long time but as far as I remember, scanf read 1 string using white space as separator. to enter aaa bbb ccc you need scanf("%s %s %s", ...) or gets use gets or scanf("%s", ..) followed by while('\n'!=getchar()); but you loose the extra typed words hope this helps. -

RE: Flushing stdin (was: Re: gcc problem?)

2002-11-24 Thread Stephan Mueller
handy). stephan(speaking, of course, only for myself, and not my employer); -Original Message- From: Eric R. Krause [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 12:14 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Flushing stdin (was: Re: gcc problem?) Carlo, Visual

Flushing stdin (was: Re: gcc problem?)

2002-11-24 Thread Eric R. Krause
Carlo, Visual C++ 6.0 CRT (and AFAICT, that of Visual C++.NET too) allow you to flush an input stream. The only problem with that is that the C standard apparently defines flushing ONLY for output streams (sec. 7.9.5.2). Why in the hell MicroSquash didn't disclose that this behavior was M$-speci

Re: gcc problem?

2002-11-24 Thread Guy Harrison
On Thu, 21 Nov 2002 10:46:26 +0800, "Carlo Florendo" <[EMAIL PROTECTED]> wrote: >Hello, > >Ever since I installed a newer cygwin, I've encountered problems which I >didn't encounter before. First, there was the >"ls -l"problem which has not yet been resolved (and which is threaded as "ls >problem

RE: gcc problem?

2002-11-23 Thread Rolf Campbell
different). -Rolf > -Original Message- > From: Carlo Florendo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 9:46 PM > To: [EMAIL PROTECTED] > Subject: gcc problem? > > > Hello, > > Ever since I installed a newer cygwin, I've enc

gcc problem?

2002-11-20 Thread Carlo Florendo
Hello, Ever since I installed a newer cygwin, I've encountered problems which I didn't encounter before. First, there was the "ls -l"problem which has not yet been resolved (and which is threaded as "ls problem" in this list.). Just today, i discovered something wrong while using gcc. I compil

RE: GCC problem

2002-03-21 Thread Robert Collins
Mike, setup is currently bust. I'm working on it right now. Could you please email me the output of mount? Cheers, Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ:

GCC problem

2002-03-21 Thread David Starks-Browning
On Thursday 21 Mar 02, Mike Hayden writes: > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: > cannot find -luser32 > collect2: ld returned 1 exit status > > I have read the mailing list and noted that many people have had the same > problem. In most all of those case

GCC problem

2002-03-21 Thread Mike Hayden
t set the environment variable CC to a working compiler. I also tried to compile a simple "Hello world" program to verify if the problem was only with the configure or some overall gcc problem. I got a similar error: /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/b

JNI/gcc problem (solved)

2002-01-08 Thread David P. Caldwell
Thanks to Chuck Wilson: In order for this to work, the --add-stdcall-alias option has to be passed to the linker on the gcc command line. So, referring to http://www.inonit.com/cygwin/jni/helloWorld/c.html, the gcc command line would need to be changed to: gcc -mno-cygwin -I$jdk/include -I$jdk/

Re: GCC problem

2001-12-14 Thread Larry Hall (RFK Partners, Inc)
At 02:59 PM 12/14/2001, gahan wrote: >when i'm tryin' to compile any file i see: cannot exec `as' or cannot >create executables. >is 'as' any file? why i see these errors? Because you either didn't install it or it didn't install correctly. Please run setup again and install all compiler rela

GCC problem

2001-12-14 Thread gahan
when i'm tryin' to compile any file i see: cannot exec `as' or cannot create executables. is 'as' any file? why i see these errors? gahan. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.