Re: Directory masks -- howto?

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
Johnathan Burchill wrote:
> On October 16, 2003 03:56 pm, Denis Corbin wrote:
 >
 >[...]
>
>>  Which
>>compilation command do you use to build the executable ?
> 
> 
> I used:
> 
> g++ -DHAVE_CONFIG_H -fexceptions -ldar64 -DMODE=64 -I./dar/src/libdar -o 
> dar-test-create dar-test-create.cpp
> 

this seems correct, except I would not use -fexceptions with g++ because 
it is activated by default (for C++). For next pre-release, you
will not need anymore -DHAVE_CONFIG_H nor "-I... "and will be able to 
use #include <dar/libdar.hpp> in your source code. I have updated the 
API_DOC file with recent changes done around installation.

> 
> But,  I just tried compiling a static version, and the exception was 
> caught! Does it make sense to you that exceptions would not work on a 
> dynamically-linked executable? Perhaps I'm missing a key option to g++...
>

it does not make sens to me. Dar, dar_xform, etc. even dynamically 
linked with libdar work properly concerning exception handling. And, I 
did a test dynamically compiling your program against libdar, all worked
as expected.

> [...]
> 
> JB

Denis.



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.