<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>
<DIV>I'm using fedora 6, the 64-bit edition. I'm trying to build a program that links with a 32-bit library. I'm using a command similar to the following:</DIV>
<DIV>g++ -o main /usr/lib/libvorbisfile.so main.cpp</DIV>
<DIV>I'm getting an error that tells me that symbols can't read from the library file because it has a wrong format.</DIV>
<DIV>However, when I try to build the program with the 64-bit version of the library using a command like the following:</DIV>
<DIV>
<DIV>g++ -o main /usr/lib64/libvorbisfile.so main.cpp</DIV>
<DIV>the program is built successfully.</DIV>
<DIV>I tried to build this same program on a system running fedora 6, the <STRONG>32-bit</STRONG> edition, using the same command:</DIV>
<DIV>
<DIV>g++ -o main /usr/lib/libvorbisfile.so main.cpp</DIV>
<DIV>and it was built successfully.</DIV>
<DIV>It seems that the gcc on fedora 64-bit refuses to link programs with 32-bit libraries. Is there a method to force the gcc to link programs to 32-bit libraries on a system running the 64-bit edition of fedora 6?</DIV>
<DIV>Appreciating your feedback.</DIV></DIV></DIV></DIV></div><br>
      <hr size=1>Boardwalk for $500? In 2007? Ha! <br><a href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.</body></html>