A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Libswf.a, swf.h, C, C++, (undefined reference to:)

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    7
    Hello there,

    please help me....

    I have got a xyz.c-File, the swf.h and the libswf.a I try to compile the xyz.c-File, but I only get an error:

    undefined reference to 'COMMAND_DEFINED_IN_SWF.H'

    It seems to be, that the commands, which are defined in the swf.h need the libswf.a, but how can I merge the libswf.a with the swf.h to compile my xyz.c-file?

    Joscha Feth
    http://www.flashtool.de

  2. #2
    Member
    Join Date
    Jul 2000
    Posts
    33
    Originally posted by Josch
    Hello there,

    please help me....

    I have got a xyz.c-File, the swf.h and the libswf.a I try to compile the xyz.c-File, but I only get an error:

    undefined reference to 'COMMAND_DEFINED_IN_SWF.H'

    It seems to be, that the commands, which are defined in the swf.h need the libswf.a, but how can I merge the libswf.a with the swf.h to compile my xyz.c-file?

    Joscha Feth
    http://www.flashtool.de
    Are you useing "C library for writing flash files" or the SDK?

    You have to tell the compiler to include the library when linking your program, there is an demo with "C library for writeing flash files" which has a Makefile that you can easily change to compile your program correctly.

    Basically you forget to include the libswf.a file when linking your program.

    hope this helps



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center