Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking the calcomp library to my program 1

Status
Not open for further replies.

baharengineer

Programmer
Jul 9, 2010
42
IR
and i have another question:

i have 10 subroutine in my program that call in program and there aren't any source code or definition for them.

because there are some subroutine that are belong to CALCOMP library that is a graphic library .

i find CALCOMP in GrWin package that when i install this , this is include some file like calcomp.lib and grwin.lib and grwin0.lib and libcalcomp.a , etc.

now i want link this library to my program but i can't do it

i work by compaq visual fortran 6.5

please help me how can i link this?

and i am amator in fortran , please tell me step by step ..
i find some code for this goal that start with "$" and i don't know where i must write this code?!

then please tell me step by step..

thanks a lot
have a nice day
 
The calcomp documentation can be found in
CVF isn't one of the listed compilers that it supports. It may work since IVF is one of the supported compilers but then again it may not. There are very big changes between CVF and IVF. Why not try the mingw/cygwin compiler. It is free and is definitely supported.
 
hi

i don't find mingw or cygwin compilers

can you help me ? a link ? or please tell me how can i download this compilers?

every link in internet is destroied!!!

thanks

 
hi

thanks i find this link before but this link is destroy and i didn't tested cygwin link!
ofcource i download cygwin compiler ...

thanks

is it possible tell me how i add a library to fortran program

by some slides?

because i am new in fortran.

best regards


 
Say the library is called libcalcomp.a and it is in the directory /home/graphics
Code:
gfortran -L /home/graphics -lcalcomp  <objectfiles>

-L indicates which directories to search
-l indicates the libraries without the lib prefix or the .a/.so suffix.
 
hi
i download cygwin from this link

but when i want install this has error message
" gfortran.exe - unable to locate component"
" this application has failed to start because cygwin1.dll was not found, re installing the application may fix this problem"

i have win 7

but on xp there is this error too

how can i fix this
 
now i download cygwin1.dll and put that in system32 folder of windows.

now when i want install gfortran there is this error message :
"gfortran.exe - entry point not found"

why?

when i download cygwin from top link, how i must install cygwin? is my solution true? i try install gfortran.exe at first ...

please tell me which file i must install?

thanks
 
sorry the error message is :
"gfortran.exe - entry point not found"
"the procedure entry point__ctype_ptr__could not be located in the dynamic link library cygwin1.dll
 
thanks XWB for your answer

i find gfortran and i install this

this is in c:/programfiles/gfortran

and my fortran source code is in j:/behine_sazan/behin.f

now by use your code for add calcomp library to this program how the library understand address of my program that be add to this?

please tell me for this directories how i must use your code to add my library ?

whether i must add library folder to my program folder? or not?

my library directory is :
C:\Users\BaHaaR\Downloads\pggw0999b-cygwin\libcalcomp.a

i install this package(pggw0999b-cygwin) and i have libcalcomp.a now

is it work with gfortran ?

thanks for your answers...
best regards
 
See if this works
Code:
j:
cd \behine_shazan
gfortran behin.f -LC:\users\BaHaaR\Downloads\pggw099b-cygwin -lcalcomp -o behin.exe
Note that there is a capital L for the directory and a lowercase L for the library.
 
HI
thanks

because my program is dependent on 11 subroutine then i don't have an exe file in my folder or in debug folder

then i get this error :behin.exe : no such file or directory

what can i do now?
 
Try without the -o behin.exe. If it links correctly, you will get a file called a.exe
 
HI

when i want add calcomp library to the program gfortran show me some error of program

and the library don't add to program

so i want add the library from compaq visual fortran 6.6 to my program

in this compiler my program has 1 warning only...

now please help me for add this library(that i attached) to a sample x.f in compaq visual fortran ... and show me how can you do it?! because when i add this from every menu or item it is wrong and don't add...

thanks
 
baharengineer said:
i find gfortran and i install this
this is in c:/programfiles/gfortran
....
my library directory is :
C:\Users\BaHaaR\Downloads\pggw0999b-cygwin\libcalcomp.a
I think you mixed gfortran for MinGW and the library for Cygwin.
Use both for MingW or both for Cygwin.
 
i can't link calcomp library still!

is it possible one person give me a little sample program and link of package and tell me how use the calcomp library to the sample?

i really confused because every way that i go , is wrong!!

my program don't draw a graphic shape!
 
Where did you get the calcomp libraries from - can you tell us what the download link is
 
this link is for download calcomp library in package GrWin


and documentation of that is in this link :


please test it and tell me how can you use this library ?

and by which compiler? i have gfortran and ccompaq visual fortran 6.6 compilers..

if you test with this compiler for me is better to understand

and tell me which subfolder of grwin you use for linking? because grwin folder is include some other folder for different compilers and calcomp is different for every which.

thanks
 
yes i saw that link but i cannot download that compilers

i download and install cygwin but after install this has a window like dos and there isn't any drive or directory on this and i cannot type any thing in this window!!!

any suggestion?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top