newbie question: need urgent help on how to include an assembly code file within a kde-develop project using c++?

Ivica Bukvic ico at fuse.net
Thu Nov 8 01:18:25 GMT 2001


Hi, I am relatively new to K-develop community, but am already stuck trying
to figure out a following problem:

There is a piece of code written by someone else in assembly and saved as
filename.asm. In order to compile it independently I would need to type
nasm -o filename.o -f elf filename.asm

and then compile a file2.c that contains a function call defined in the
above-mentioned source with
cc -g -o binaryname file2.c filename.o

This way, everything goes well and binary works, BUT if I try to include the
same .asm file in the KDE project, first off, I am not sure how to include
it other than registering it to the project (under the "FILES" tab), but
that does nothing to the final compile, and I am not sure how to include it
in the c++ file either. So what happens is that whenever I do a file.asm's
function call within the project's c++ file (i.e. one of the class methods
needs to call it), the compiler complains how it is an undeclared function
(obviously). But I have no clue as to how to include it in the c++ file
since #include statement is reserved for .h files, not other types. I tried
registering already precompiled .asm file (in this case filename.o), but
that did not work either. So my question is, how do I register that .asm
file and make sure that it gets properly compiled (Adding that in the
makefile would not make any difference, since makefile is made and
overwritten by the ./configure, if I am not mistaken) and on top of that how
do I make sure that its function also gets included into the c++ file which
utilizes it?

Any help would be greatly appreciated! Sincerely,

Ico Bukvic, composer, computer consultant & audio designer
http://ping.ccm.uc.edu/~ico/
ico at fuse.net
============================
"To be is to do" - Socrates
"To do is to be" - Sartre
"Do be do be do" - Sinatra
"I am"           - God



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list