Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: yotama9 on August 22, 2010, 03:58:44 pm

Title: opening a project in code::blocks on macos
Post by: yotama9 on August 22, 2010, 03:58:44 pm
Hi guys.

When I open a code::blocks project on mac OS, I only see the main.cpp file in the project viewer and not the src folder or the includer folder. How can I fix this?

Thanks.

Yotam.

I wish to add some info...

1. I try to open the project after code::blocks crashed.
2. I have also noticed that I can't compile the program, here is the output:

Code
Compiling: main.cpp
Linking console executable: bin/Debug/mem3
Undefined symbols:
  "ball::~ball()", referenced from:
      _main in main.o
      _main in main.o
  "ball::move()", referenced from:
      _main in main.o
  "vec::~vec()", referenced from:
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
  "ball::show()", referenced from:
      _main in main.o
  "ball::ball(vec, int)", referenced from:
      _main in main.o
  "vec::vec(double, double, double)", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Title: Re: opening a project in code::blocks on macos
Post by: oBFusCATed on August 22, 2010, 04:29:47 pm
Probably you should re-add the missing files to the project.
Open the .cbp file in a text editor and see if all files are there.

Also C::B does not save the .cbp/.workspace files when you compile your project.
There is autosave plugin that can prevent some data-loss, when C::B crashes...

Hope some of this will help you...  :lol: