Thread overview | |||||
---|---|---|---|---|---|
|
November 10, 2005 Symbol Undefined _snprintf | ||||
---|---|---|---|---|
| ||||
I've got a line of code like this in a file: snprintf(buffer, sizeof(buffer), "%sfd", argv[1]); When I try to compile&link this file with DMC it keeps telling me: Error 42: Symbol Undefined _snprintf should I link some specific library in addition? Thanks, bye. |
November 10, 2005 Re: Symbol Undefined _snprintf | ||||
---|---|---|---|---|
| ||||
Posted in reply to cane | cane wrote: > I've got a line of code like this in a file: > > snprintf(buffer, sizeof(buffer), "%sfd", argv[1]); > > When I try to compile&link this file with DMC it keeps telling me: > > Error 42: Symbol Undefined _snprintf snprintf is a C99 function, DMC is not (as far as i can tell) C99 complient. DMC has however a function called _snprintf (notice the _) which seems to do the same. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel |
November 11, 2005 Re: Symbol Undefined _snprintf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | Bertel Brander wrote: > snprintf is a C99 function, DMC is not (as far as i can tell) > C99 complient. Ouch! I didnt' know... > DMC has however a function called _snprintf (notice the _) > which seems to do the same. Thanks, calling _snprintf() seems to solve the problem. Bye. |
Copyright © 1999-2021 by the D Language Foundation