tinycc-devel
[Top][All Lists]
Advanced

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

RE: [Tinycc-devel] POSIX directory functions in a Windows environment.


From: Christian Jullien
Subject: RE: [Tinycc-devel] POSIX directory functions in a Windows environment.
Date: Thu, 1 Apr 2010 08:08:54 +0200

Hi James,

 

You can use the dirent version I wrote.

This implementation uses internal Windows functions.

 

To test this lib:

C:>tcc -D_TESTDIR dirent.c

C:>dirent .

 

Hope it helps.

 

 

*TCC maintainers* are welcome to include it in distro. Since I wrote this library from scratch, I’m the owner and I can modify copyright if you like.

 

Please report me bugs and improvements.

 

 

Christian

 


From: address@hidden [mailto:address@hidden On Behalf Of James Russell Moore
Sent: mardi 30 mars 2010 18:23
To: address@hidden
Subject: [Tinycc-devel] POSIX directory functions in a Windows environment.

 

Hello everyone, I'm porting an application to Windows right now which accesses directories and files using POSIX functions.

Instead of switching to the native functions and as TCC includes the dirent.h header and so I kept the same functions when dealing with them. The problem appeared when building the app where messages like the following ones appear in the linking phase. How should I link a program which makes use of those functions? Is it possible to use them when using TCC?

tcc: error: undefined symbol 'opendir'
tcc: error: undefined symbol 'readdir'
tcc: error: undefined symbol 'closedir'

Thank you very much for your time, best regards,
James Russell.

 

Attachment: dirent.zip
Description: Binary data


reply via email to

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