Sandeep Jindal | 1 Sep 2009 02:49
Picon

GCJ - libgmp-3.dll was not found

Hi all,
I am new user to MinGW. I did automatic installation for the same. 
But while compiling a simple java program, I got the following error
This application has failed to start because libgmp-3.dll was not found. Re-installing the application may fix this problem.
I did try doing the manual installation for the same too, but still gettting the same error.
I re-confirmed the Path in Environment variables.
Please suggest.
Regards
Sandeep Jindal
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Clive McCarthy | 1 Sep 2009 07:45
Picon
Favicon

latest GCC version

Is it true that the _latest_ GCC version with Mingw is 3.4.5 --- from 2004?

The Ubuntu version is 4.2.4 from 2007.
The GCC website shows 4.3.4 is just released (August 2009)

I was hoping that my Ubuntu and XP ports would be built on compilers of 
similar vintage.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Chris Wilson | 1 Sep 2009 09:32

Re: latest GCC version

On Mon, 31 Aug 2009, Clive McCarthy wrote:

> Is it true that the _latest_ GCC version with Mingw is 3.4.5 --- from 2004?

4.4.0 is available at https://sourceforge.net/projects/mingw/files/ under 
"GCC Version 4".

> The Ubuntu version is 4.2.4 from 2007.
> The GCC website shows 4.3.4 is just released (August 2009)
>
> I was hoping that my Ubuntu and XP ports would be built on compilers of
> similar vintage.

2004 was a particularly good year, you should be grateful that you can 
still get some for a reasonable price :)

GCC 4.x was reportedly not stable enough for end users on Windows until 
very recently, when some MinGW developers (mainly Danny Smith I think) 
managed to fix it. Google for "mingw gcc 4" for more info.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Alexander Shaduri | 1 Sep 2009 10:46
Picon

Multiple definition of `_printf' with when using __USE_MINGW_ANSI_STDIO


Hi all,

I'm resending this message because I haven't received any post
acknowledgmenet from sourceforge for 3 days. I hope the other
two messages I sent - "AttachConsole is incorrectly specified as
since win2k, not xp" and "Invalid prototype for _open_osfhandle() in io.h"
reached this list.
Sorry if you receive this twice.

The original message follows:

I have a linking problem when using -D__USE_MINGW_ANSI_STDIO.
I get "multiple definition of `_printf'" link-time error when linking several
objects which all use std::printf().

To reproduce:

File test_printf1.cpp :
----------------------------------------------------
#include <cstdio>
int main()
{
        std::printf("hello\n");
        return 0;
}
----------------------------------------------------

File test_printf2.cpp :
----------------------------------------------------
#include <cstdio>
void func()
{
        std::printf("world\n");
}
----------------------------------------------------

$ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf1.cpp -c -o test_printf1.o

$ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf2.cpp -c -o test_printf2.o

$ i386-pc-mingw32-g++ test_printf1.o test_printf2.o -o test_printf.exe
test_printf2.o:test_printf2.cpp:(.text+0x14): multiple definition of `_printf'
test_printf1.o:test_printf1.cpp:(.text+0x3e): first defined here
collect2: ld returned 1 exit status

$ i386-pc-mingw32-nm test_printf1.o
00000000 b .bss
00000000 d .data
00000000 r .rdata
00000000 t .text
         U ___main
         U ___mingw_vprintf
         U __alloca
00000000 T _main
0000003e T _printf

$ i386-pc-mingw32-nm test_printf2.o
00000000 b .bss
00000000 d .data
00000000 r .rdata
00000000 t .text
00000000 T __Z4funcv
         U ___mingw_vprintf
00000014 T _printf

I'm using gcc 3.4.5 (mingw version) cross-compiler (from linux),
binutils-2.19.1, mingwrt-3.16, w32api-3.13.

Thanks,
Alexander

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

John Brown | 1 Sep 2009 13:11
Picon
Favicon

Re: Multiple definition of `_printf' with when using __USE_MINGW_ANSI_STDIO

Alexander Shaduri <ashaduri <at> ...> writes:

> 
> 
> Hi all,
> 
<snip/>
> 
> I have a linking problem when using -D__USE_MINGW_ANSI_STDIO.
> I get "multiple definition of `_printf'" link-time error when linking several
> objects which all use std::printf().

<snip/>

 $ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf1.cpp -c -o
test_printf1.o
> 
> $ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf2.cpp -c -o
test_printf2.o
> 
> $ i386-pc-mingw32-g++ test_printf1.o test_printf2.o -o test_printf.exe
> test_printf2.o:test_printf2.cpp:(.text+0x14): multiple definition of `_printf'
> test_printf1.o:test_printf1.cpp:(.text+0x3e): first defined here
> collect2: ld returned 1 exit status
> 
<snip/>
> 
> I'm using gcc 3.4.5 (mingw version) cross-compiler (from linux),
> binutils-2.19.1, mingwrt-3.16, w32api-3.13.
> 
> Thanks,
> Alexander
> 

I can only confirm that it happens with Windows MinGW (g++ 3.4.5, 
mingwrt-3.15.2), but not with Kubuntu Jaunty (i586-mingw32msvc-g++ 4.2.1-sjlj,
mingw-runtime 3.13-1.)

Regards,
Alias John Brown.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Alexander Shaduri | 1 Sep 2009 13:32
Picon

Re: Multiple definition of `_printf' with when using __USE_MINGW_ANSI_STDIO

On Tue, 1 Sep 2009 11:11:49 +0000 (UTC)
John Brown <johnbrown105@...> wrote:

>  $ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf1.cpp -c -o
> test_printf1.o
> > 
> > $ i386-pc-mingw32-g++ -D__USE_MINGW_ANSI_STDIO test_printf2.cpp -c -o
> test_printf2.o
> > 
> > $ i386-pc-mingw32-g++ test_printf1.o test_printf2.o -o test_printf.exe
> > test_printf2.o:test_printf2.cpp:(.text+0x14): multiple definition of `_printf'
> > test_printf1.o:test_printf1.cpp:(.text+0x3e): first defined here
> > collect2: ld returned 1 exit status
> > 
> <snip/>
> > 
> > I'm using gcc 3.4.5 (mingw version) cross-compiler (from linux),
> > binutils-2.19.1, mingwrt-3.16, w32api-3.13.
> 
> I can only confirm that it happens with Windows MinGW (g++ 3.4.5, 
> mingwrt-3.15.2), but not with Kubuntu Jaunty (i586-mingw32msvc-g++ 4.2.1-sjlj,
> mingw-runtime 3.13-1.)

Thanks, that's probably because -D__USE_MINGW_ANSI_STDIO had
no effect in mingwrt < 3.15. :)
The macro is supposed to enable standard C printf family of functions,
overriding the msvcrt ones. It seems that the implementation has
some problems though, as evidenced by the errors above.

Thanks,
Alexander

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Érico Teixeira | 1 Sep 2009 16:03
Picon
Favicon

Call Level Interface with MinGW

Hello,
I'm trying to compile and link some CLI samples in DB2 Express-C(v9.5) with MinGW
I've tried to follow the Call Level Interface Guide and Reference Vol 1 in page 270 (Linux CLI Application Compile and Link Option)
As an example I would like to run dbinfo sample
I can compile dbinfo and utilcli with out linking them, when I try to link and run it I can't pass the correct commands to it
I've tried several options related to Guide and Reference but none of them is working, like :
gcc -o dbinfo utilcli.o -shared -L%DB2_HOME%/lib
utilcli.o:utilcli.c:(.text+0x1f9): undefined reference to `SQLGetDiagRec <at> 32
utilcli.o:utilcli.c:(.text+0x28a): undefined reference to `SQLFreeStmt <at> 8'
utilcli.o:utilcli.c:(.text+0x2e4): undefined reference to `SQLFreeStmt <at> 8'
...

the env variable DB2_HOME is working fine, I'm missing something else

I don't believe it is something related to the CLI ... cause I can compile the files but not link them ...

Can someone give me a help how to link these samples using gcc please

start: 0000-00-00 end: 0000-00-00
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Greg Chicares | 1 Sep 2009 16:34
Picon
Favicon

Re: Call Level Interface with MinGW

On 2009-09-01 14:03Z, Érico Teixeira wrote:
> 
> gcc -o dbinfo utilcli.o -shared -L%DB2_HOME%/lib
> 
> utilcli.o:utilcli.c:(.text+0x1f9): undefined reference to `SQLGetDiagRec <at> 32

Specify the library that supplies that missing symbol,
by adding an appropriate '-l' option after the '-L' option.
Uppercase '-L' tells gcc where to look for the library;
lowercase '-l' names the library.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

John Brown | 1 Sep 2009 17:39
Picon
Favicon

Re: Call Level Interface with MinGW


Greg Chicares wrote:
>
> On 2009-09-01 14:03Z, Érico Teixeira wrote:
>>
>> gcc -o dbinfo utilcli.o -shared -L%DB2_HOME%/lib
>>
>> utilcli.o:utilcli.c:(.text+0x1f9): undefined reference to `SQLGetDiagRec <at> 32
>
> Specify the library that supplies that missing symbol,
> by adding an appropriate '-l' option after the '-L' option.
> Uppercase '-L' tells gcc where to look for the library;
> lowercase '-l' names the library.
>

Specifically:
gcc -o dbinfo utilcli.o -shared -L%DB2_HOME%/lib -lodbc32
should do the trick.

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Érico Teixeira | 1 Sep 2009 17:42
Picon
Favicon

Re: Call Level Interface with MinGW

hello Greg

I've tried this :
gcc -o dbinfo.out dbinfo.c utilcli.c -I%DB2_HOME%/include -L%DB2_HOME%/lib -ldb2cli -ldb2api

but I'm getting another error now :
dbinfo.out:crtstuff.c:(.text+0x280): multiple definition of `mainCRTStartup'
/mingw/lib/crt2.o:crt1.c:(.text+0x280): first defined here
dbinfo.out:crtstuff.c:(.text+0x2a0): multiple definition of `WinMainCRTStartup'
/mingw/lib/crt2.o:crt1.c:(.text+0x2a0): first defined here
dbinfo.out:crtstuff.c:(.text+0x2c0): multiple definition of `atexit'
/mingw/lib/crt2.o:crt1.c:(.text+0x2c0): first defined here
dbinfo.out:crtstuff.c:(.text+0x2d0): multiple definition of `_onexit'
/mingw/lib/crt2.o:crt1.c:(.text+0x2d0): first defined here
dbinfo.out:crtstuff.c:(.text+0x2e0): multiple definition of `__do_sjlj_init'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o:crtstuff.c:(.text+0x0): first defined here
dbinfo.out:crtstuff.c:(.bss+0x4): multiple definition of `_argc'
/mingw/lib/crt2.o:crt1.c:(.bss+0x4): first defined here
dbinfo.out:crtstuff.c:(.bss+0x0): multiple definition of `_argv'
/mingw/lib/crt2.o:crt1.c:(.bss+0x0): first defined here
collect2: ld returned 1 exit status

sorry about the mess but I'm quite lost on this cause I've tried several options until now

Regards,
Érico

--- On Tue, 9/1/09, Greg Chicares <gchicares <at> sbcglobal.net> wrote:

From: Greg Chicares <gchicares-rphTv4pjVZMJGwgDXS7ZQA@public.gmane.org>
Subject: Re: [Mingw-users] Call Level Interface with MinGW
To: "MinGW Users List" <mingw-users-5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.net>
Date: Tuesday, September 1, 2009, 11:34 AM

On 2009-09-01 14:03Z, Érico Teixeira wrote:
>
> gcc -o dbinfo utilcli.o -shared -L%DB2_HOME%/lib
>
> utilcli.o:utilcli.c:(.text+0x1f9): undefined reference to `SQLGetDiagRec <at> 32

Specify the library that supplies that missing symbol,
by adding an appropriate '-l' option after the '-L' option.
Uppercase '-L' tells gcc where to look for the library;
lowercase '-l' names the library.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users <at> lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

start: 0000-00-00 end: 0000-00-00
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Gmane