Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311767

Summary: Fortran static library does not recognise source files
Product: [Tools] PTP Reporter: Ohad Gur <ohadg>
Component: Photran.UnknownAssignee: Photran Inbox <photran-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ohad Gur CLA 2010-05-05 13:20:16 EDT
Build Identifier: 20100218-1602

When I try to build a fortran-static-library the project does not recognise the source files. Here is an example for a simple "hello world" project:


**** Build of configuration Debug for project Hello ****

Nothing to build for project Hello

An executable project works fine.

Reproducible: Always

Steps to Reproduce:
1. File -> New -> Fortran project
choose: static library, define a name, 
2. Next
3. Finish
4. Add file to the project (e.g using import)
5. Build project (ctrl+B)
Comment 1 Jeffrey Overbey CLA 2010-05-06 17:19:14 EDT
You said:
1. File -> New -> Fortran project
choose: static library, define a name, 

Do you mean "Static Library > Empty Project" or "Static Library (Intel Fortran)"?
Comment 2 Ohad Gur CLA 2010-05-06 20:40:35 EDT
(In reply to comment #1)
> You said:
> 1. File -> New -> Fortran project
> choose: static library, define a name, 
> Do you mean "Static Library > Empty Project" or "Static Library (Intel
> Fortran)"?

I meant Static Library -> Empty Project
Comment 3 Jeffrey Overbey CLA 2010-05-06 23:26:27 EDT
That is actually a project type for C/C++ static libraries, not Fortran, so it only recognizes C/C++ source files.

The New Fortran Project dialog in Photran 5 contains both C and Fortran project types, and unfortunately the name CDT chose for this project type obviously makes it impossible to tell that it only works with C/C++ source files.

This will be fixed in Photran 6, which contains only Fortran-specific project types in the New Project wizard.

Sorry about the confusion.