Professional Web Applications Themes

linking problems (CW) - Mac Programming

hi! I've a problem compiling,or more propably,with linkinging libgsm as a static code into my app. It seems it compiles and preprocess correctly (this is a c code). I include "gsm.h" and the linker says e.g. gsm_create undefined (code). I removed all externs from libgsm (it originally compiles as a unix dynamic library), also assured that source compiles with no errors (it does). I also doublechecked if all needed files are included in my target, and if the gsm.h file is indeed included by my app main file (preprocess shows it is). In desperation i tried to compile the code ...

  1. #1

    Default linking problems (CW)

    hi!

    I've a problem compiling,or more propably,with linkinging
    libgsm as a static code into my app. It seems it compiles and
    preprocess correctly (this is a c code). I include "gsm.h"
    and the linker says e.g. gsm_create undefined (code).
    I removed all externs from libgsm (it originally compiles as a unix
    dynamic library), also assured that source compiles with no errors (it
    does). I also doublechecked if all needed files are included in my target,
    and if the gsm.h file is indeed included by my app main file (preprocess
    shows it is).

    In desperation i tried to compile the code to a static library,and it
    does compile with no complains. I get library i include later in my project,
    unfortunately, i still can't access any function although i export them with
    appropriate pragmas...

    I really don't know why it happens.
    Maybe someone more experienced could help with some suggestions?

    BTW: are memcpy and memset available with codewarrior std libs? which .h
    should i use? i don't see them in stdio.h....

    Bests,
    HR


    HiddenRabbit Guest

  2. #2

    Default Re: linking problems (CW)

    In article <bhq81k$jan$1SunSITE.icm.edu.pl>,
    "HiddenRabbit" <nospamnospam.com> wrote:
    > BTW: are memcpy and memset available with codewarrior std libs?
    Of course.
    > which .h
    > should i use? i don't see them in stdio.h....
    Type 'man memcpy' in terimnal and you'll see it should be in <string.h>.
    Sean McBride Guest

  3. #3

    Default Re: linking problems (CW)

    > Of course.
    >
    > > which .h
    > > should i use? i don't see them in stdio.h....
    >
    > Type 'man memcpy' in terimnal and you'll see it should be in <string.h>.
    BTW: I'm compiling lib gsm to use it under carbon and classic :(



    HiddenRabbit Guest

  4. #4

    Default Re: linking problems (CW)

    In article <bhqk23$jbc$1SunSITE.icm.edu.pl>,
    "HiddenRabbit" <nospamnospam.com> wrote:
    > > > which .h
    > > > should i use? i don't see them in stdio.h....
    > >
    > > Type 'man memcpy' in terimnal and you'll see it should be in <string.h>.
    >
    > BTW: I'm compiling lib gsm to use it under carbon and classic :(
    Ah. ;) Well, you can always put the entire MSL folder (containing all
    the headers) in the 'Find In Files' section and search them all at once
    to find where a prototype is.
    Sean McBride Guest

Similar Threads

  1. linking
    By KevDawg014 in forum Dreamweaver AppDev
    Replies: 7
    Last Post: July 29th, 02:11 PM
  2. Linking problems with xerces-c2_2_0 on ibm aix 5.2
    By Reinhard Schauer in forum AIX
    Replies: 0
    Last Post: September 18th, 03:20 PM
  3. Image problems when linking to new page...
    By Smeagol71 webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 27th, 05:44 PM
  4. Linking Problems
    By SamEl webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 17th, 11:59 AM
  5. Need help linking xp to 98
    By Steve Winograd [MVP] in forum Windows Networking
    Replies: 0
    Last Post: July 3rd, 11:07 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139