[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tcc and the dirent.h

From: Nicolas Limare
Subject: Re: [Tinycc-devel] tcc and the dirent.h
Date: Wed, 16 Nov 2011 13:10:34 +0900
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Julia,

> I've seen my question posted a few times already, but not a
> sufficient answer to it, so I hope, someone here can help me.
> I am using the tcc version 0.9.25.
> When I use the opendir function I get the message:
> tcc: undefined symbol 'opendir'
> the same is the case for the functions readdir and closedir.
> The header of my program looks like this:
> #include <stdio.h>
> #include <stdlib.h>
> #include <io.h>
> #include <dirent.h>
> Do I need to include another library to make these functions work?

The "undefined symbol" is a link-time error, so including other
headers will solve it (headers only add other function definitions,
not the symbols). Which options are you using to compile your code?

Nicolas LIMARE
http://nicolas.limare.net/                         pgp:0xFA423F4F

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]