From: H. P. A. <hp...@zy...> - 2008-10-29 23:19:12
|
Tyler Littlefield wrote: > Hello, > I was wondering how a linking of nasm to other libraries could be pulled > off. > I've wanted to use functions from other libraries, such as math.h (pow) etc, > but am not sure how to link--ideas would be great. It depends on the operating system. On Unix operating systems, or on Windows using MinGW, the easiest way is to use your C compiler to link: cc -o output input1.o input2.o [-library] The stanadard library, libc, is automatically linked in, other libraries you have to specify. This will also cause the C library startup code to be included, which is necessary in order to invoke arbitrary functions. -hpa |