C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 14th, 2003, 07:55 AM
Swakke Swakke is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 Swakke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Compilation doesn't work when including library

In order to compile a program using threads I have to use next line:
cc -lpthread -o thr_test thr_test.c

In order to compile a program containing a certain library (NTL made by Shoup), I need next line:
g++ -I../include -I. -O2 -o DTMS_TST DTMS_TST.c ntl.a -lm

When I want to combine both, ex: using threads in the program using the NTL library, I always have compilation errors like:
(using NTL in the thread programme)
ERROR:
thr_test.c:3:20: NTL/ZZ.h: No such file or directory

If I use next line (inclusion of library), I get next errors:
cc -I../include -I. -lpthread -o thr_test thr_test.c ntl.a

I get a whole list of conflicts, parse errors,...

Is there somebody that can hekp me out?

swakke

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Compilation doesn't work when including library


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway