2013/1/23 NightStrike <[email protected]>:
> On Wed, Jun 11, 2008 at 11:40 AM, Grant Pedersen <[email protected]> 
> wrote:
>> Hi NightStrike & Kai,
>>
>> Have you had any luck with issues 2 - 5 below?  Issue 5 is a showstopper for
>> me at the moment.
>
> Which of these are still a problem?  At least a few have been fixed.
>
>> Thanks,
>> Grant.
>>
>>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Grant
>> Pedersen
>> Sent: 15 May 2008 01:06
>> To: [email protected]
>> Subject: [Mingw-w64-public] Several GCC issues
>>
>> I'm using mingw-w64 (i686 20080420) for the first time and have noticed some
>> differences in its behaviour compared to MinGW.  If anyone can help me with
>> the following issues it would be greatly appreciated!
>>
>> 1. The following code works with MinGW:
>>
>>         #include <windef.h>
>>         int main(int argc, char **argv) {}

Works.

>> but causes the following error with mingw-w64:
>>
>> <snip>
>>
>> 2. _controlfp, _control87, _clear87, _clearfp, _status87, _statusfp appear
>> to be missing from float.h
>>
>> 3. float.h from lib\gcc\x86_64-pc-mingw32\4.4.0\include is being used
>> instead of mingw\include.  Is this correct?

Use 4.6.x and/or trunk headerset.  Issue was fixed.
>> 4. -mthreads doesn't seem to work.  mingwm10.dll & libmingwthrd.a are
>> missing.
>>
>>         gcc test.c -o test.exe -mthreads
>>
>>
>> c:/dev/mingw-64/bin/../lib/gcc/x86_64-pc-mingw32/4.4.0/../../../../x86_64-pc
>> -mingw32/bin/ld.exe: cannot find -lmingwthrd
>>         collect2: ld returned 1 exit status

There is no need of that switch, but anyway dummy library is present
on trunk, and I assume on v2.x too.  So fixed.
The DLL is no longer necessary.  We handle that different.

>> 5. InterlockedExchangeAdd appears to be missing.
>>
>>         #include <windows.h>
>>
>>         int main(int argc, char **argv)
>>         {
>>                 InterlockedExchangeAdd(0, 0);
>>                 InterlockedCompareExchange(0, 0, 0);
>>         }
>>
>>         Error:
>>         C:/Users/Grant/AppData/Local/Temp/ccFgnIml.o:test.cpp:(.text+0x1f):
>> undefined reference to `__InterlockedExchangeAdd'
>>         collect2: ld returned 1 exit status
Issue 5 is fixed.  Use trunk or v2 mingw-w64 version.

>>
>> Thanks,
>> Grant.

All those issue are no longer present. And you NightStrike should
know, or able to test for it.

Regards,
Kai

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to