User forums > Using Code::Blocks

projects

<< < (3/5) > >>

BlueHazzard:
I really dont get your problem and why you think c::b handles projects srrange. Keep in mind that c::b is not a compiler but a ide. Cb has no idea about your main and he doesn't have to. C::b feeds all files from a project (there are exceptions e.g. Targets ) to the compiler. If you have multiple mains over multiple files in one project, then you confuse the compiler, because a program can have only one start point. But this has nothing to do with c::b...

rogerh:

--- Quote from: BlueHazzard on July 31, 2015, 02:18:12 am ---I really dont get your problem and why you think c::b handles projects srrange.
--- End quote ---

Well for example, when you ask it to add or remove files from a project it doesn't tell you what's there now.


--- Quote --- Keep in mind that c::b is not a compiler but a ide. Cb has no idea about your main and he doesn't have to. C::b feeds all files from a project (there are exceptions e.g. Targets ) to the compiler. If you have multiple mains over multiple files in one project, then you confuse the compiler, because a program can have only one start point. But this has nothing to do with c::b...

--- End quote ---

No but cb puts a phony main in there without asking. It seems I have to call my program "main.f95"
so cb will understand, a point not mentioned in the docs.

If I seem rude please make allowances for the newness of all this.

Roger

raynebc:
To see the contents of the project, make sure View>Manager is checked and change that to the Projects tab.

rogerh:
This is getting incredibly frustrating.

Is there a C::B for idiots somewhere?

I'm trying to create a new project. It should contain 2 files; roger21.f95 and common.f95.

Instead, CB puts a main.f95 file in there, causing an error (two mains).

If I delete the fake main and rename roger21.f95 to main.f95 CB puts the fake main back, overwriting my version.

It can't be this hard!!!

Roger

stahta01:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version