This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Some problems in making DLL's for C++ programs with GCC (fwd)


At 01:25 16.2.1997 +1100, you wrote:
>I wrote:
>
>> where fixup.s contains the following assembler code:
>> 
>> 	.section .idata $3
>> 	.long 0,0,0,0, 0,0,0,0
>
>Oops, that won't work.  Try fixup.c with
>
>      asm(".section .idata $3\n" ".long 0,0,0,0, 0,0,0,0");
                           ^
                  can't be a space here

So the correct syntax is

   asm(".section .idata$3\n" ".long 0,0,0,0, 0,0,0,0");

	-antti

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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