简体   繁体   中英

Does the “ccmath” library compile on x86-64 linux?

Ccmath library: http://freecode.com/projects/ccmath

It does not specify 32/64 bit in description, but when I compile on Ubuntu 10.10 64 bit it spits out error on asm-file compilling:

solv.s:13: Error: invalid instruction suffix for `push'

code line: pushl %ebp

But if I replace cc shell instruction for gcc -m32 its all OK! However, can I compile it on x86-64 ? I have to link this to 64bit project.

That ccmath package looks like it hasn't been updated since 2001. Its assembly routines are not 64-bit capable. You should run the included non_intel.sh script as instructed in the INSTALL file. (As far as this package is concerned, x86-64 is non-intel because "intel" means "x86-32".)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM