Author Topic: projects  (Read 8345 times)

Offline rogerh

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: projects
« Reply #15 on: July 31, 2015, 07:11:39 pm »
This isn't a fortran problem. It's a CB problem. It's doing things I don't understand.

My program works perfectly as a single file but when I try to make it into a project, CB inserts fake programs in it's place.

Roger

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: projects
« Reply #16 on: July 31, 2015, 08:20:54 pm »
When you deleted the default file from the project, did you remember to save the project?

Offline rogerh

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: projects
« Reply #17 on: July 31, 2015, 08:27:40 pm »
No, didn't know it was necessary.

I'll try that. 

Roger

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: projects
« Reply #18 on: July 31, 2015, 09:06:34 pm »
Can you post the exact steps you're doing? Describe as many details as possible (1. clicked this menu, 2. clicked this button, etc).
Recording a video might also be helpful for us to understand what you're doing wrong.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline rogerh

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: projects
« Reply #19 on: July 31, 2015, 09:15:25 pm »
Ok, problem solved.

I got out of CB, physically moved the needed files into the project directory, renamed the roger21.f95 file to main.f95, did a rebuild and it ran perfectly.

Seems odd that it was necessary since CB has an "add file" button but whatever.

Now the .exe file was found in the roger21/bin/debug directory and it doesn't work because libgfortran-3.dll is missing.

How come?

Roger
« Last Edit: July 31, 2015, 09:23:34 pm by rogerh »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: projects
« Reply #20 on: July 31, 2015, 11:24:49 pm »
Add file button doesn't do copy file from random location to the root of my project.
It adds just it the project with the full path.

You have to copy the libgfortran-3.dll that is in you compiler folder tree next to the exe file.
It is a compiler thing again, nothing to do with CB.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline rogerh

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: projects [solved]
« Reply #21 on: August 01, 2015, 11:13:57 pm »
I'm still having problems with projects.

Now it's rejecting modules with a "no such file or directory" error.

I know this sounds like a compiler problem but two other IDEs I've tried don't have any problem with it. That includes Silverfrost and Simply Fortran but those are too costly for my budget ($0.00)

EDIT: Ok, cancel that. Problem solved. CB didn't like the name I was using for the project for some unknown reason

Roger
« Last Edit: August 01, 2015, 11:42:08 pm by rogerh »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: projects
« Reply #22 on: August 02, 2015, 01:46:18 am »
This isn't a fortran problem. It's a CB problem. It's doing things I don't understand.

My program works perfectly as a single file but when I try to make it into a project, CB inserts fake programs in it's place.

Roger

PLEASE READ THE LINKS I POSTED; or I will ask you to be banned!

Is there a reason you think this site support learning FORTRAN?

Did you try this site? http://darmar.vgtu.lt/
Or the newer site http://cbfortran.sourceforge.net/

Tim S.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline rogerh

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: projects
« Reply #23 on: August 02, 2015, 01:52:06 am »

PLEASE READ THE LINKS I POSTED; or I will ask you to be banned!

What makes you think I didn't?

Is there a reason you think this site support learning FORTRAN?

Did you try this site? http://darmar.vgtu.lt/
Or the newer site http://cbfortran.sourceforge.net/

Tim S.

Yes I did. Neither one had any way to get questions answered.

Roger