![]() |
| | #1 |
| Registered User Join Date: Feb 2002
Posts: 328
| I'm using Watcom C, and included the file in the project, still it will say that the function doesn't exist. Does the prototype have to look in a particular way? I've prototyped it like this: void somefunc(void); Any suggestions? Best regards knutso |
| knutso is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,648
| > I've prototyped it like this: void somefunc(void); But when you try and call this, and the linker tells you it's unresolved, what is the actual symbol name. Some compilers prefix the name with an underscore, so somefunc in your code would actually be _somefunc to the linker. It's the linker version of the name which you want to be using for the name of the function in your asm file. I'm assuming that the compiler and and assembler are matched - in that they produce a common .OBJ format. |
| Salem is offline | |
| | #3 |
| Registered User Join Date: Feb 2002
Posts: 328
| assembler code Hi, and thanks for the reply. The assembler, compiler and linker are all part of the Watcom package, so they should match.. The functions are prefixed with an underscore too.. |
| knutso is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| have some difficulty compiling a project | Masterx | C++ Programming | 1 | 04-04-2009 07:49 AM |
| Problem with compiling code with option -O2 | koushikyou | C Programming | 16 | 01-07-2009 06:03 AM |
| Linking an assembly routine into a GCC project | huh | C++ Programming | 3 | 11-21-2002 03:14 PM |
| converting c/c++ code to assembly | moonwalker | A Brief History of Cprogramming.com | 8 | 07-25-2002 02:15 PM |