[Pw_forum] Undefined reference to gfortran

2014-01-25 Thread BENYAHIA NEZHA












Mr Axel Kohlmeyer



To response to your question, I have
learned programming but probably not as much as you and i was so brilliant in 
this field, but i
have never worked with the Fortran compiler then because of this i 
found some difficulties which are  perhaps  so obvious
to you ;  Even
though i  think that everybody can be mistaken. But at the end i have just find 
the problem which was so obvious like you said:
I have to use the command 'gfortran band3c.for' and all is done!! instead 
of using 
'gcc band3c.for'. 


  
-- next part --
An HTML attachment was scrubbed...
URL: 
http://pwscf.org/pipermail/pw_forum/attachments/20140125/8d766947/attachment.html
 


[Pw_forum] Undefined reference to gfortran

2014-01-24 Thread Lorenzo Paulatto
On 01/24/2014 05:57 PM, BENYAHIA NEZHA wrote:
> band-3c.for

Dear Nezha,
There is no such file in the Quantum-ESPRESSO distribution. I would
recommend you ask whomever provided it to you.

kind regards

-- 
Dr. Lorenzo Paulatto
IdR @ IMPMC -- CNRS & Universit? Paris 6
phone:+33 (0)1 44275 084 / skype: paulatz
www:  http://www-int.impmc.upmc.fr/~paulatto/
mail: 23-24/4?16 Bo?te courrier 115, 4 place Jussieu 75252 Paris C?dex 5


[Pw_forum] Undefined reference to gfortran

2014-01-24 Thread BENYAHIA NEZHA









Hello,
 I'am using quantum
espresso in my searches, but i'am still a beginner  in this
domain. I have faced a problem in which it prevent me to compile my
program, i have looked all around the internet for the hope of
finding a solution to this issue but unfortunately nothing was
found.
 If you have some solution to this problem,
please  don't hesitate for helping me, and i you will be so
gratefull. 
 






Here is
the message that i have received when writing the command "gcc
band-3c.for"

root at b-HP-Pavilion-Sleekbook-15-PC:/home/band#
gcc band-3c.for
/tmp/ccxmgVZP.o: dans la fonction ? MAIN__
?:
band-3c.for:(.text+0x63): r?f?rence ind?finie vers ?
_gfortran_st_open ?
band-3c.for:(.text+0xaf): r?f?rence
ind?finie vers ? _gfortran_st_read ?
band-3c.for:(.text+0xcc):
r?f?rence ind?finie vers ? _gfortran_transfer_real
?
band-3c.for:(.text+0xe9): r?f?rence ind?finie vers ?
_gfortran_transfer_real ?
band-3c.for:(.text+0x106): r?f?rence
ind?finie vers ? _gfortran_transfer_real
?
band-3c.for:(.text+0x114): r?f?rence ind?finie vers ?
_gfortran_st_read_done ?
band-3c.for:(.text+0x14a): r?f?rence
ind?finie vers ? _gfortran_st_read ?
band-3c.for:(.text+0x167):
r?f?rence ind?finie vers ? _gfortran_transfer_real
?
band-3c.for:(.text+0x184): r?f?rence ind?finie vers ?
_gfortran_transfer_real ?
band-3c.for:(.text+0x1a1): r?f?rence
ind?finie vers ? _gfortran_transfer_real
?
band-3c.for:(.text+0x1be): r?f?rence ind?finie vers ?
_gfortran_transfer_real ?
band-3c.for:(.text+0x1db): r?f?rence
ind?finie vers ? _gfortran_transfer_real
?
/tmp/ccxmgVZP.o:band-3c.for:(.text+0x1f8): encore plus de
r?f?rences ind?finies suivent vers ? _gfortran_transfer_real
?
/tmp/ccxmgVZP.o: dans la fonction ? MAIN__
?:
band-3c.for:(.text+0x240): r?f?rence ind?finie vers ?
_gfortran_st_read_done ?
band-3c.for:(.text+0x28a): r?f?rence
ind?finie vers ? _gfortran_st_write ?
band-3c.for:(.text+0x2a7):
r?f?rence ind?finie vers ? _gfortran_transfer_integer_write
?
band-3c.for:(.text+0x2c4): r?f?rence ind?finie vers ?
_gfortran_transfer_real_write ?
band-3c.for:(.text+0x2e1):
r?f?rence ind?finie vers ? _gfortran_transfer_real_write
?
band-3c.for:(.text+0x2fe): r?f?rence ind?finie vers ?
_gfortran_transfer_real_write ?
band-3c.for:(.text+0x31b):
r?f?rence ind?finie vers ? _gfortran_transfer_real_write
?
band-3c.for:(.text+0x338): r?f?rence ind?finie vers ?
_gfortran_transfer_real_write
?
/tmp/ccxmgVZP.o:band-3c.for:(.text+0x355): encore plus de
r?f?rences ind?finies suivent vers ?
_gfortran_transfer_real_write ?
/tmp/ccxmgVZP.o: dans la fonction
? MAIN__ ?:
band-3c.for:(.text+0x39d): r?f?rence ind?finie
vers ? _gfortran_st_write_done ?
/tmp/ccxmgVZP.o: dans la
fonction ? main ?:
band-3c.for:(.text+0x3d7): r?f?rence
ind?finie vers ? _gfortran_set_args ?
band-3c.for:(.text+0x3eb):
r?f?rence ind?finie vers ? _gfortran_set_options ?
collect2:
erreur: ld a retourn? 1 code d'?tat d'ex?cution

 The
file "band-3c.for": 

c
plot structure de bande
c point du klist
a,b,c
c les energies  
d,e,f,g,h,p,q,r,s,t(nombre de bande)
  
real*8 a,b,c,d,e,f,g,h,i,j,k
  
real*8 l,m,n,o,p,q,r,s
  
real*8 t,u,v,w,x,y,z,aa
  
real*8 bb,cc
  
integer iii
c Lire les energies apartir du
fichier out ZnSbands.dat
  
open(unit=2,status='unknown', file='GaAs-band')

c
i est le nonbre de point dans le klist
  
do iii=1,91
  
read(2,*)  a,b,c
  
read(2,*)  d,e,f,g,h,i,j,k
  
write(3,10) iii,d,e,f,g,h,i,j,k
10
format(3x,I3,3x,120(f12.4,4x))
  
end do
  
end




  
-- next part --
An HTML attachment was scrubbed...
URL: 
http://pwscf.org/pipermail/pw_forum/attachments/20140124/da37b47c/attachment.html
 


[Pw_forum] Undefined reference to gfortran

2014-01-24 Thread Fabricio Cannini
Em 24-01-2014 15:02, Axel Kohlmeyer escreveu:
> On Fri, Jan 24, 2014 at 11:57 AM, BENYAHIA NEZHA
>  wrote:
>> Hello,
>>   I'am using quantum espresso in my searches, but i'am still a beginner  in
>> this domain. I have faced a problem in which it prevent me to compile my
>> program, i have looked all around the internet for the hope of finding a
>> solution to this issue but unfortunately nothing was found.
>
> that is probably because the solution is *too* obvious. you need to
> use a Fortran compiler to compile fortran code.

Axel, what is obvious to me and you may not be to others. Please calm down.

> where did you learn programming???

Perhaps he/she ( i'm sorry, i cannot tell from your name ) have not 
learned programming. I would expect this kind of mistake in such case.


[ ]'s


[Pw_forum] Undefined reference to gfortran

2014-01-24 Thread Axel Kohlmeyer
On Fri, Jan 24, 2014 at 11:57 AM, BENYAHIA NEZHA
 wrote:
> Hello,
>  I'am using quantum espresso in my searches, but i'am still a beginner  in
> this domain. I have faced a problem in which it prevent me to compile my
> program, i have looked all around the internet for the hope of finding a
> solution to this issue but unfortunately nothing was found.

that is probably because the solution is *too* obvious. you need to
use a Fortran compiler to compile fortran code.

where did you learn programming???

>  If you have some solution to this problem, please  don't hesitate for
> helping me, and i you will be so gratefull.


> Here is the message that i have received when writing the command "gcc
> band-3c.for"
>
> root at b-HP-Pavilion-Sleekbook-15-PC:/home/band# gcc band-3c.for
> /tmp/ccxmgVZP.o: dans la fonction ? MAIN__ ?:
> band-3c.for:(.text+0x63): r?f?rence ind?finie vers ? _gfortran_st_open ?
> band-3c.for:(.text+0xaf): r?f?rence ind?finie vers ? _gfortran_st_read ?
> band-3c.for:(.text+0xcc): r?f?rence ind?finie vers ? _gfortran_transfer_real
> ?
> band-3c.for:(.text+0xe9): r?f?rence ind?finie vers ? _gfortran_transfer_real
> ?
> band-3c.for:(.text+0x106): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> band-3c.for:(.text+0x114): r?f?rence ind?finie vers ? _gfortran_st_read_done
> ?
> band-3c.for:(.text+0x14a): r?f?rence ind?finie vers ? _gfortran_st_read ?
> band-3c.for:(.text+0x167): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> band-3c.for:(.text+0x184): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> band-3c.for:(.text+0x1a1): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> band-3c.for:(.text+0x1be): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> band-3c.for:(.text+0x1db): r?f?rence ind?finie vers ?
> _gfortran_transfer_real ?
> /tmp/ccxmgVZP.o:band-3c.for:(.text+0x1f8): encore plus de r?f?rences
> ind?finies suivent vers ? _gfortran_transfer_real ?
> /tmp/ccxmgVZP.o: dans la fonction ? MAIN__ ?:
> band-3c.for:(.text+0x240): r?f?rence ind?finie vers ? _gfortran_st_read_done
> ?
> band-3c.for:(.text+0x28a): r?f?rence ind?finie vers ? _gfortran_st_write ?
> band-3c.for:(.text+0x2a7): r?f?rence ind?finie vers ?
> _gfortran_transfer_integer_write ?
> band-3c.for:(.text+0x2c4): r?f?rence ind?finie vers ?
> _gfortran_transfer_real_write ?
> band-3c.for:(.text+0x2e1): r?f?rence ind?finie vers ?
> _gfortran_transfer_real_write ?
> band-3c.for:(.text+0x2fe): r?f?rence ind?finie vers ?
> _gfortran_transfer_real_write ?
> band-3c.for:(.text+0x31b): r?f?rence ind?finie vers ?
> _gfortran_transfer_real_write ?
> band-3c.for:(.text+0x338): r?f?rence ind?finie vers ?
> _gfortran_transfer_real_write ?
> /tmp/ccxmgVZP.o:band-3c.for:(.text+0x355): encore plus de r?f?rences
> ind?finies suivent vers ? _gfortran_transfer_real_write ?
> /tmp/ccxmgVZP.o: dans la fonction ? MAIN__ ?:
> band-3c.for:(.text+0x39d): r?f?rence ind?finie vers ?
> _gfortran_st_write_done ?
> /tmp/ccxmgVZP.o: dans la fonction ? main ?:
> band-3c.for:(.text+0x3d7): r?f?rence ind?finie vers ? _gfortran_set_args ?
> band-3c.for:(.text+0x3eb): r?f?rence ind?finie vers ? _gfortran_set_options
> ?
> collect2: erreur: ld a retourn? 1 code d'?tat d'ex?cution
>
>  The file "band-3c.for":
>
> c plot structure de bande
> c point du klist a,b,c
> c les energies   d,e,f,g,h,p,q,r,s,t(nombre de bande)
>real*8 a,b,c,d,e,f,g,h,i,j,k
>real*8 l,m,n,o,p,q,r,s
>real*8 t,u,v,w,x,y,z,aa
>real*8 bb,cc
>integer iii
> c Lire les energies apartir du fichier out ZnSbands.dat
>open(unit=2,status='unknown', file='GaAs-band')
>
> c i est le nonbre de point dans le klist
>do iii=1,91
>read(2,*)  a,b,c
>read(2,*)  d,e,f,g,h,i,j,k
>write(3,10) iii,d,e,f,g,h,i,j,k
> 10 format(3x,I3,3x,120(f12.4,4x))
>end do
>end
>
>
> ___
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://pwscf.org/mailman/listinfo/pw_forum



-- 
Dr. Axel Kohlmeyer  akohlmey at gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.