YIRAN LI | 15 Apr 14:16 2014
Picon

ld option --gc-sections

Hi,

I'm a newbie to MinGW, here I have a question for a ld option.

I'm trying to remove decode code from my library, I used -ffunction-sections -fdata-sections when compile, to put each function into individual sections and used --gc-sections as an option for linker to remove any unreferenced (dead) code.

These options work perfectly on Ubuntu, but when running on MinGW, I could see that functions have been put into individual sections, but --gec-sections seems couldn't discard unused sections.

So here I'd like to know, if this option is really not supported currently and if there's an official or unofficial patch to support it?

Thanks
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Bill Modlin | 14 Apr 21:01 2014
Picon

Windows: where is the function _setargv() defined?

Working on Windows 7, using the compiler included in a recent download of Code::Blocks.

I wrote a simple C command-line program.  It worked.

Now I am trying to write another.

It will process a series of arguments which may include "wildcard" characters "*" and "?".

It seems that something in the initialization process for argc and argv passed to main at startup is
treating those arguments as files, and expanding the inputs to multiple argv entries for the files
nominally referenced.

This is apparently done by a function _setargv().

I would like to include a version of _setargv() in my project that does not do the expansion.

Or alternatively I would be happy to find that there is some compiler switch or option than can disable the
expansion for this project.

Assuming there is no such switch, I think I need source for _setargv(), either a version that does not do the
expansion or one that I can modify to remove the expansion code.

Can anyone tell me where to get such source?  Google found me a couple of old versions that probably are not
appropriate for my windows command line environment, but I cannot seem to find current code.  I tried
downloading a few variants of "c library" packages, but none of them have this function included.  There
are so many things on sourceforge and I am overwhelmed by all those versions and tars and whatnot... I
thought I was trying to do something simple, but so far it seems anything but simple. 

If think that if I find or create such a version of _setargv() and include it in my project along with the code I
am actually writing, that will solve my problem.  The compiler+linker will use my version and not look
for the default version.  Someone please correct me if that assumption is wrong.   

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Robert Hartmann | 14 Apr 16:10 2014
Picon
Picon

Boost.Context + MinGW + EXPORT keyword

Hi there,

just some days ago I tried to build Boost Library from Source via 
MinGW Toolset inside Windows cmd.exe.

Because Boost.Context has a documented dependency on MASM [1] the build
process under Windows without MSAM doesn't work.

I found this ticket and inside the following quoted statement:

https://svn.boost.org/trac/boost/ticket/7262

********
 You should ask the MinGW developers to get their software correct 
 (for instance linker used by MinGW does not understand the EXPORT 
 keyword in the object files generated by MASM). 
********

My question is now: 
Is there a chance, so that gcc/g++ from MinGW.org can use object-files 
generated from MASM?

I tried the MASM from [2] (coff-mode and non coff mode) but linking failed.

Best regards,
Robert

[1] 
http://www.boost.org/doc/libs/1_55_0/libs/context/doc/html/context/requirements.html

[2] http://www.masm32.com/

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

georg chambert | 12 Apr 16:43 2014
Picon

library libstdc++ for XP and gcc

Hi
 
I have now unsuccessfully tried to get to terms with missing libstdc++ library, for my gcc for an application Im trying to get going.
 
I have since previously a gcc 2.8 installed (which was fairly simple i recallL)
 
then I have from MinGw installalled some utility for Setup/download which is supposed to make thing easier, by hiding reality (i.e. installed files in directories)
by some GUI.  That utility thinks that I have installed a 4.8 version, which then is  supposed to contain the c++ standardlibrary that im
looking for (mainly the vector and fstream )
 
I have also tried to find the libstdc++.a file, which then I found however disguised in linux shape with .tar.bzip2 which I would not associate with a windows
distribution, however I took it to my linux and detarred it, however, when linking with this file i still dont get the gcc to find my vector,
 
getting more and more desperate with the "nice utilities" that have develped to "make things easier"
 
please has someone a notion of what to do ?   ( and the installlation utility, why has it not made the installation; using gcc -v i still get version 2.8, so whats up)
(while the utility proudly presents that 4.8 is a green square box (guess meaning installed))
 
best wishis and very thankfull for any advice
 
georg
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Keith Marshall | 11 Apr 20:56 2014
Picon
Picon

Re: can't compile using the mingw, get error about missing dll.

Jon,

On 11/04/14 15:57, jleslie48 <at> users.sf.net wrote:
> first off, thanks for even attempting to put this out I know its a
> big effort to do so.

You're welcome.

> However, I can't figure out how to use it.

Well, if you want personal consultation, my fees are £1200 UK-Sterling
per diem, or part thereof, payable in advance.  If you don't want to pay
that, and you can't find the answer on http://mingw.org, (where I found
it easily, BTW), then please use the mailing list:

http://lists.sourceforge.net/mailman/listinfo/mingw-users

-- 
Regards,
Keith.

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request <at> lists.sourceforge.net?subject=unsubscribe
John Pote | 7 Apr 12:59 2014
Picon

What thread library to use?

Hello,
Have been using Mingw recently to restore my 'C' skills on a PC rather 
than the microcontrollers I usually code for. (My PC is XP Professional)

I want to add threads to my application and would appreciate suggestions 
as to apprepriate thread library(s) to use. Does one come with the 
normal Mingw distro? Is there a library/API that runs with Windows, xNIX 
and or Mac OS X? It would be nice to think that the same code could run 
on all three major OSs.

Any help appreciated,
Regards,
John

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Wayne Stambaugh | 2 Apr 15:06 2014
Picon
Picon

strtokr definition.

As of version 4 of the w32api, strtokr() is defined in pthreads.h.
Posix specifies that strtokr is defined in string.h.  Was this done on
purpose or was this an oversight?  I realize that mingw is not a Posix
replacement, but defining strtokr in pthreads.h causes cross platform
build issues.  Also, I'm not sure the mingw definition of strtokr() is
re-entrant. I checked the bug report database and this didn't come up.
Should I file a bug report against this?

Regards,

Wayne

------------------------------------------------------------------------------
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Kim | 30 Mar 00:24 2014
Picon

Configuring and building ld linker to generate ELF files on Windows for cross compilation to linux 32 & 64bit

Hi guys,

I'm trying to set up a cross compilation toolchain targeting linux 32bit 
and 64bit from windows 7 using clang and ld. I have clang compiling the 
object files for the linux target just fine but I'm not sure about how 
to set up the ld build so that it can link to ELF. If I take the object 
files generated by clang over to linux I can successfully link them but 
on windows ld gives me a message "invalid file format". Building 
binutils from mingw I tried:

$ configure --target=x86_64-pc-linux

And various other targets but none of them seemed to do the trick. Using 
objdump -i I can see my version of ld supports:

                pe-i386 pei-i386 elf32-i386 elf32-little elf32-big 
plugin srec
           i386 pe-i386 pei-i386 elf32-i386 elf32-little elf32-big 
------ srec
         plugin ------- -------- ---------- elf32-little elf32-big 
------ srec

While the one on linux has:

                elf64-x86-64 elf32-i386 elf32-x86-64 a.out-i386-linux 
pei-i386
           i386 elf64-x86-64 elf32-i386 elf32-x86-64 a.out-i386-linux 
pei-i386

                pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big
           i386 pei-x86-64 ---------- ---------- elf64-little elf64-big
           l1om ---------- elf64-l1om ---------- elf64-little elf64-big
           k1om ---------- ---------- elf64-k1om elf64-little elf64-big
         plugin ---------- ---------- ---------- elf64-little elf64-big

                elf32-little elf32-big pe-x86-64 pe-i386 plugin srec 
symbolsrec
           i386 elf32-little elf32-big pe-x86-64 pe-i386 ------ srec 
symbolsrec
           l1om elf32-little elf32-big --------- ------- ------ srec 
symbolsrec
           k1om elf32-little elf32-big --------- ------- ------ srec 
symbolsrec
         plugin elf32-little elf32-big --------- ------- ------ srec 
symbolsrec

Anyone know how I go about setting this up correctly? Any help is 
greatly appreciated!

Thanks very much,
Kim

------------------------------------------------------------------------------
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Sergey Martynenko | 29 Mar 19:05 2014
Picon

gcc build-install order dependencies

I want build GCC (and mingwrt, w32api, gmp, mpfr, mpc) from sources.

Must I install each package, immediately after build it, before compile next package ?
Or allowably, at first, compile all of them, and after that, install it ?

In other words, compiling gcc should be with using of the newly compiled files of libraries,
or it does not matter, and allowed to use those that were in binary form before compile sources ?

for example:

1. make directory C:\mingw
2. set PATH
3. mingw-get update
4. mingw-get install mingw-get
5. mingw-get install gcc-g++   ; here we have binary (not source) form of the libraries: mingwrt, w32api,
gmp, mpfr, mpc, gcc

[...]

6. run MSYS and cd working-directory

   $ cd /mingw/work
   $ mingw-get source mingw32-mingwrt
   $ mingw-get source mingw32-w32api
   $ mingw-get source mingw32-gmp
   $ mingw-get source mingw32-mpfr
   $ mingw-get source mingw32-mpc
   $ mingw-get source mingw32-gcc

whether further should be the only one way
7a.
   $ cd gmp-5.1.2-1-mingw32-src
   $ make clean package
   $ make install

   $ cd ../mpfr-3.1.2-2-mingw32
   $ make clean package
   $ make install

   $ cd ../mpc-1.0.1-2-mingw32
   $ make clean package
   $ make install

   $ cd ../gcc-4.8.1-4-mingw32
   $ make clean package
   $ make install

or allowed
7b.

   $ cd gmp-5.1.2-1-mingw32-src
   $ make clean package
   $ cd ../mpfr-3.1.2-2-mingw32
   $ make clean package
   $ cd ../mpc-1.0.1-2-mingw32
   $ make clean package
   $ cd ../gcc-4.8.1-4-mingw32
   $ make clean package

   $ cd gmp-5.1.2-1-mingw32-src
   $ make install
   $ cd ../mpfr-3.1.2-2-mingw32
   $ make install
   $ cd ../mpc-1.0.1-2-mingw32
   $ make install
   $ cd ../gcc-4.8.1-4-mingw32
   $ make install

--
Regards,
Sergey Martynenko.
------------------------------------------------------------------------------
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Mark Collins | 29 Mar 05:17 2014
Picon

MinGW package seems have problem..

I'm trying to install mingw and msys latest version with official installer.
But After I install..strange error keep poped up..
"There is no msys-intl8.dll"..something like..
I thought I have done something wrong.
But I found download package files (*.lzma) itself corrupted.
Is there any problem at repository or network ??
Anybody have same symptom like me ?

------------------------------------------------------------------------------
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Earnie Boyd | 27 Mar 22:25 2014
Picon
Picon

Re: msys

No and I don't have time to help.  Ask the list.

Earnie

On Thu, Mar 27, 2014 at 5:38 AM, Mohamed Houacine
<mohamed.houacine@...> wrote:
> Hello Earnie,
>
> I would like to ask you a question regarding the mingw shell. I'm wondering
> if there is a possibility to launch 'msys.bat' to configure the shell
> without creating a new prompt (configure the current one). I would like to
> use migw shell as a default command shell in freesshd server (connexion from
> linux to windows) but it says that it fails to find the window of executed
> program!
>
> Have you any idea?
> Thanks for your help

--

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
_______________________________________________
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.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe


Gmane