include<tissue.h> not found
Main Topics
Browse All Topics
hi,
I'm interested in an algorithm that was implemented in C. I have little experience in C language, so I couldn't run the code.
the algorithm (named TLR) used a library also implemented in C (named libtissue). I tried running the TLR but I keep getting an error of header not found , although the headers are included.
http://www.asap.cs.nott.ac
(tlr-lt-0.1.tar.gz & libtissue-1.0.1.tar.gz )
I'm not sure where the problem rely? is it in the code? is there a missing file? or is it me who didn't know how to run it.
can any one help?
thank you
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In order to use it in tlr-lt.c, you'll need to tell the compiler that it's defined elsewhere by adding this :
extern const unsigned int nsyscalls;
to the tlr-lt.c file.
You'll also need to remove the 'static' at the start of the nsyscalls definition in syscall.c so that it becomes :
const unsigned int nsyscalls = sizeof sysent / sizeof sysent[0];
thank you a lot, you are saving me here :)
I have this error
tlr-lt.c: In function `main':
tlr-lt.c:665: warning: passing arg 2 of `init_tissue' makes pointer from integer without a cast
tlr-lt.c:665: error: too few arguments to function `init_tissue'
I know that I should pass socket name as a parameter to
init_tissue((int16_t) ts_port, max_antigen, max_cytokines, \
max_cells);
so it will become some thing like
init_tissue((int16_t) ts_port, sockname, max_antigen, max_cytokines, \
max_cells)
the thing is that I didn't find it in the parameter file (the initialization file, that is read by tlr)
hello,
Infinity08, you were right there was some missing functions in libtissue that I found in previous versions :)
now I run the project and I got the following message :
--------------------------
Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug clean" in C:\Documents and Settings\R AM\My Documents\NetBeansProjects
rm -f *.o *~ tlr-lt tissue.log
Clean successful. Exit value 0.
Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\R AM\My Documents\NetBeansProjects
gcc -Wall -O2 -g -lpthread -ltissue -lm -o tlr-lt tlr-lt.c
/usr/lib/gcc/i686-pc-cygwi
collect2: ld returned 1 exit status
make: *** [tlr-lt] Error 1
Build failed. Exit value 2.
--------------------------
>> undefined reference to `_writelog_tissue'
Since you're not building the library as a library, you'll have to compile it as separate object files, and then link all of those into your application ...
(note that it would have been easier to just build the library - it saves you a lot of this trouble)
hello again,
here is what I've been doing:
I create a project named tissue and successfully complied it
I created another project named tlr-lt and add tissue as its library
but when I build tlr-lt I got the same error
--------------------------
Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\R AM\My Documents\NetBeansProjects
gcc -Wall -O2 -g -lpthread -ltissue -lm -o tlr-lt tlr-lt.c
/usr/lib/gcc/i686-pc-cygwi
collect2: ld returned 1 exit status
make: *** [tlr-lt] Error 1
Build failed. Exit value 2.
--------------------------
so I tried removing ltissue from
CLIBS=-lpthread -ltissue -lm
and I got a previous error
--------------------------
Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\R AM\My Documents\NetBeansProjects
gcc -Wall -O2 -g -lpthread -lm -o tlr-lt tlr-lt.c
/cygdrive/c/DOCUME~1/RAM~1
/cygdrive/c/Documents and Settings/R AM/My Documents/NetBeansProjects
.
.
.
--------------------------
:(
ok. I thought you were using some kind of IDE ;) Let me know what the progress is on http:#24618229
>> i'm using NetBeans IDE
Well, it depends on your project set-up.
Just to eliminate a badly set-up project, try running the compilation command from the command line. ie. navigate to the directory that contains both tlr-lt.c and libtissue.a, and then execute :
gcc -Wall -O2 -g -lpthread -ltissue -lm -o tlr-lt tlr-lt.c
>>try running the compilation command from the command line. ie. navigate to the directory that contains both tlr-lt.c and libtissue.a, and then execute :
gcc -Wall -O2 -g -lpthread -ltissue -lm -o tlr-lt tlr-lt.c
got this message
'gcc' is not recognized as an internal or external command, operable program or batch file.
Business Accounts
Answer for Membership
by: Infinity08Posted on 2009-06-09 at 12:40:10ID: 24584894
What is the error you get ?