fputs with VLF library

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
manatails007
Posts: 13
Joined: Wed Mar 05, 2008 10:34 pm

fputs with VLF library

Post by manatails007 »

I cant use fputs and fgets with VLF library

btcnf.c:(.text+0xa14): undefined reference to `fgets'
btcnf.c:(.text+0xa4c): undefined reference to `fputs'
btcnf.c:(.text+0xa68): undefined reference to `fputs'
btcnf.c:(.text+0xad8): undefined reference to `fputs'
btcnf.c:(.text+0xc90): undefined reference to `fgets'
btcnf.c:(.text+0xcb8): undefined reference to `fputs'
btcnf.c:(.text+0xcd4): undefined reference to `fputs'
btcnf.c:(.text+0xd80): undefined reference to `fputs'
collect2: ld returned 1 exit status
make: *** [btcnf.elf] Error 1

I see errors like that.. what should I do?
Need2P
Posts: 6
Joined: Sat Mar 21, 2009 5:38 pm

Post by Need2P »

Did you include the VLF Library somewhere?
like: #include "thelibrary.extension"
or: #include <thelibrary.extension>
slasher2661996
Posts: 91
Joined: Sun Feb 22, 2009 8:32 am
Location: Melbourne Australia ZOMG

Post by slasher2661996 »

OMFG.

READ B4 YOU POST. PERIOD
blu_eye4
Posts: 37
Joined: Sun Oct 26, 2008 8:41 pm

Post by blu_eye4 »

Need2P wrote:Did you include the VLF Library somewhere?
like: #include "thelibrary.extension"
or: #include <thelibrary.extension>
fgets is a standard C function and it depends from stdio.h.. have you included this file in your source?
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

I don't think DAX has added that function to VLF. You can only use VLF's internal libc functions AFAIK.
Post Reply