This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIZEOF_LONG 4 instead of 8 in 64-bits




David Daney-4 wrote:
> 
> On 05/18/2010 11:10 AM, Kraiser wrote:
>>
>>
>>
>> Mark Rose-3 wrote:
>>>
>>>>
>>>> I need to use #define __SIZEOF_LONG__ 4 instead of #define
>>>> __SIZEOF_LONG__
>>>> 8
>>>> in amd64 so my program will not double the memory usage how Can i do
>>>> so?
>>>> using debian and gcc 4.4.4
>>>
>>> Have you tried using the -m32 flag?
>>>
>>>
>>>
>> ye i did
>> kraiser@myhost:~/amsn_received$ g++ main.cpp -m32
>> In file included from /usr/include/features.h:378,
>>                   from
>> /usr/include/c++/4.4/x86_64-linux-gnu/32/bits/os_defines.h:39,
>>                   from
>> /usr/include/c++/4.4/x86_64-linux-gnu/32/bits/c++config.h:243,
>>                   from /usr/include/c++/4.4/iostream:39,
>>                   from main.cpp:1:
>> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: Nie ma takiego
>> pliku
>> ani katalogu
>>
>>
> 
> Try installing the 32-bit glibc development libraries.
> 
> David Daney
> 
> 
Hi and after that just compile program normally or I have to add sth else?
-- 
View this message in context: http://old.nabble.com/SIZEOF_LONG-4-instead-of-8-in-64-bits-tp28598575p28599695.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]