linking problems (CW)

Ask a Question related to Mac Programming, Design and Development.

  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. Similar Questions and Discussions

    1. Linking problems with xerces-c2_2_0 on ibm aix 5.2
      Hi all, I try to build a program on AIX 5.2 with gcc 3.3 using the xerces-c2_2 parser. At the end of the build process I always get the following...
    2. Linking in AIX
      Hello, ok, I was able to produce a small example which shows a specific problem I am having. It has interesting properties: I'm using gcc 3.3...
    3. Image problems when linking to new page...
      Well, I'm using Dreamweaver 6.0 to do it and I'm running into a problem that perhaps someone can help me with. Here it is broken down simply and in a...
    4. Linking Problems
      Hello again, I have a linking problem. I cannot seem to link menu items successfully to the appropriate .htm files. The items are gifs and I make...
    5. Need help linking xp to 98
      In article <0a8d01c341a5$9f717cd0$a001280a@phx.gbl>, "Mark" <choppedcarrots@hotmail.com> wrote: If you're asking about Internet Connection...
  3. #2

    Default Re: linking problems (CW)

    In article <bhq81k$jan$1@SunSITE.icm.edu.pl>,
    "HiddenRabbit" <nospam@nospam.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

  4. #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

  5. #4

    Default Re: linking problems (CW)

    In article <bhqk23$jbc$1@SunSITE.icm.edu.pl>,
    "HiddenRabbit" <nospam@nospam.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

Posting Permissions

  • You may not post new threads
  • You may 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