vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm working on an HPUX system using GCC. I'm trying to compile some code that includes a header that uses the _asm function. The linker (ld) fails to resolve the function. If I compile a test file with cc, it is able to compile the _asm function; gcc leaves it in the .s file as an import symbol which ld isn't resolving. Is there a library I'm not including for the gcc compile or is this an issue gcc can't handle? This is for an HP-UX 10.20 PA_RISK system and the module has to be built in the kernel so it all started with the ld symbol check when the kernel was being rebuilt. TIA! Rick Hunnicutt Software Engineering San Diego, CA |
| ||||
| rhunnicutt@hotmail.com (Rick) writes: > I'm working on an HPUX system using GCC. I'm trying to compile some > code that includes a header that uses the _asm function. It is not a function. It is a compiler directive, that says "include the enclosed assembly code verbatim". > The linker (ld) fails to resolve the function. Naturally. > Is there a library I'm not including No. > or is this an issue gcc can't handle? Gcc can handle "inline assembly" just fine, but the format is different. The equivalent directive is "asm" (no underscore), and the enclosed assembly syntax may be different. Type "info gcc" -> "C extensions" -> "Extended Asm" Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |