For Programmers: Free Programming Magazines  


Home > Archive > Fortran > March 2008 > Error: Unrecognized token '?' skipped









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error: Unrecognized token '?' skipped
FlyVenus

2008-03-18, 10:19 pm

Hi, all:

I set up a fortran console project in VS2005. The system generate code
like this :

! Console2.f90
!
! FUNCTIONS:
! Console2 - Entry point of console application.
!

!
****************************************
************************************
!
! PROGRAM: Console2
!
! PURPOSE: Entry point for the console application.
!
!
****************************************
************************************

program Console2

implicit none

! Variables

! Body of Console2
print *, 'Hello World'

end program Console2


When I complie it, always have errors in first line, the message is
'Unrecognized token '?' skipped'.
The complier is Intel(R) Fortran Compiler 10.0.025.
Help me~~~ thank you...
Steve Lionel

2008-03-18, 10:19 pm

On Mar 18, 6:47 pm, FlyVenus <dugugu...@gmail.com> wrote:

> When I complie it, always have errors in first line, the message is
> 'Unrecognized token '?' skipped'.
> The complier is Intel(R) Fortran Compiler 10.0.025.


There's probably a non-printing character that snuck in there
somehow. Do you get this any time you create a new project, or only
this one?

If you need more help, ask in the Intel Visual Fortran user forum at
http://softwarecommunity.intel.com/.../ShowForum.aspx

Steve Lionel
Developer Products Division
Intel Corporation
Les

2008-03-19, 8:15 am


"FlyVenus" <duguguiyu@gmail.com> wrote in message
news:8bac2226-2b7b-4cf8-8587-f86259153e3c@i12g2000prf.googlegroups.com...
> Hi, all:
>
> I set up a fortran console project in VS2005. The system generate code
> like this :
>
> ! Console2.f90
> !
> ! FUNCTIONS:
> ! Console2 - Entry point of console application.
> !
>
> !
> ****************************************
************************************


If these lines are actually part of your source file then :
The above line needs a ! at the beginning in order to be a comment

> !
> ! PROGRAM: Console2
> !
> ! PURPOSE: Entry point for the console application.
> !
> !
> ****************************************
************************************


same here

Les


John Harper

2008-03-19, 7:15 pm

In article <8bac2226-2b7b-4cf8-8587-f86259153e3c@i12g2000prf.googlegroups.com>,
FlyVenus <duguguiyu@gmail.com> wrote:
>Hi, all:
>
>I set up a fortran console project in VS2005. The system generate code
>like this :
>
>When I complie it, always have errors in first line, the message is
>'Unrecognized token '?' skipped'.
>The complier is Intel(R) Fortran Compiler 10.0.025.


When I compiled that program with that compiler I only got complaints
about line 8 beginning '**', which is of course bad in free source form.
It's OK in fixed source form, but if you try to compile the program that
way, you'll find that Fortran statements mustn't begin in space 5 on
their lines: shunt them along to begin in space 7 or later.

-- John Harper, School of Mathematics, Statistics and Computer Science,
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail john.harper@vuw.ac.nz phone (+64)(4)463 6780 fax (+64)(4)463 5045
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com