User forums > Using Code::Blocks

opening a project in code::blocks on macos

(1/1)

yotama9:
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
--- End code ---

oBFusCATed:
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:

Navigation

[0] Message Index

Go to full version