Erlang/OTP Forums

Author Message

<  Erlang  ~  problems with eunit.hrl

wyborowiec
Posted: Mon Dec 01, 2008 6:34 am Reply with quote
Joined: 01 Dec 2008 Posts: 4 Location: Poland
Hi

I've got a problem with

-include_lib("eunit-2.0/include/eunit.hrl")

directive. I'm using Erlang 5.6.5, so I had to manually copy eunit.hrl file to lib/eunit-2.0/include/eunit.hrl directory of Erlang distribution (it's explained on Erlang download page). My applications doesn't see the include file however. I can use EUnit only if I copy the file to "." directory.

What could be a problem? I'll be grateful for help.
View user's profile Send private message
ArtDen
Posted: Thu Dec 04, 2008 1:01 pm Reply with quote
Joined: 01 Nov 2008 Posts: 4
wyborowiec wrote:
-include_lib("eunit-2.0/include/eunit.hrl")

Does work this:
-include_lib("eunit/include/eunit.hrl").
?
View user's profile Send private message
klaar
Posted: Sat Dec 06, 2008 12:24 pm Reply with quote
User Joined: 06 Oct 2008 Posts: 11 Location: Göteborg/Sweden
Do not append the version number to the application that you are including files from, the application name will be translated to the most recent version.
View user's profile Send private message
wyborowiec
Posted: Tue Dec 09, 2008 10:27 am Reply with quote
Joined: 01 Dec 2008 Posts: 4 Location: Poland
Ok, it was the problem, thanks.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum