[luau] Linking explained and fixed!
Jeff Mings
jeffm at lava.net
Sun Apr 21 12:24:42 PDT 2002
Thank you so much! I told it what libraries to use, and it links now!
Thanks also to Warren for the automake links.
I've also found the gcc how-to, which I'll digest later today - probably
would have saved me a lot of frustration if I had located it earlier.
Thanks,
-Jeff
Jimen Ching wrote:
>On Sat, 20 Apr 2002, Jeff Mings wrote:
>
>
>>E.g., when I try gcc grab_partial_image.c , I receive a long list
>>of errors:
>>/tmp/ccWnmLby.o: In function `main':
>>/tmp/ccWnmLby.o(.text+0x21): undefined reference to `dc1394_create_handle'
>>/tmp/ccWnmLby.o(.text+0x5b): undefined reference to `raw1394_get_nodecount'
>>
>>
>
>If that was the exact command line you used, then the problem is that you
>did not specify the libraries that are needed. In Unix, you have to
>manually include the libraries on the command line. With IDE's, the
>needed libraries are automatically included for you. Use the following
>command line:
>
>gcc grab_partial_image.c -ldc1394 -lraw1394
>
>You might need to reverse the order of the library options. The order
>makes a difference. The difference is in the dependencies. If library A
>depends on library B, then library A should be placed _first_ on the
>command line.
>
>Hope this helps.
>
>--jc
>--
>Jimen Ching (WH6BRR) jching at flex.com wh6brr at uhm.ampr.org
>
>_______________________________________________
>LUAU mailing list
>LUAU at videl.ics.hawaii.edu
>http://videl.ics.hawaii.edu/mailman/listinfo/luau
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freesoftwarehawaii.org/pipermail/luau-freesoftwarehawaii.org/attachments/20020421/ee6bab93/attachment-0001.htm>
More information about the LUAU
mailing list