"CONT1D and D1ONE already defined"
When compile with -O2, gcc 4.3.2 tries to inline short functions like
gcd(). Thus the labels CONT1D and D1ONE get redefined.
1) Try gcc 4.0.3.
or 2) use local labels instead. eg.
__asm__ __volatile__ ( "movl %1, %%eax;"
"0: cmpl $0, %%ebx;"
"je 1f;"
...
"jmp 0b;"
"1: movl %%eax, %0;" : "=g" (result) : "g"
(a), "g" (b)
);
On 2011-6-18 10:02, saurabh singh wrote:
I am using standard gcc 4.3.2 and the code does not requires any flag
to be required.I also checked the alias if gcc has been aliased to be
used with some option,but that was not the case.My operating system is
ubuntu.The error I get is "CONT1D and D1ONE already defined.
I wonder if spoj has a modified gcc which uses the nasm assembler
instead of the standard assembler packed with gcc?I have put the
problem on spoj forum few days back but no one has replied since
On Sat, Jun 18, 2011 at 3:06 AM, DK <[email protected]
<mailto:[email protected]>> wrote:
What compiler are you using? Version, compile options etc.
--
DK
--
You received this message because you are subscribed to the Google
Groups "Algorithm Geeks" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/algogeeks/-/Wf2PvNNjTikJ.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:algogeeks%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD
--
You received this message because you are subscribed to the Google
Groups "Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
You received this message because you are subscribed to the Google Groups "Algorithm
Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.