Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311767 - Fortran static library does not recognise source files
Summary: Fortran static library does not recognise source files
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Unknown (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 13:20 EDT by Ohad Gur CLA
Modified: 2010-05-06 23:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.