Author Topic: opening a project in code::blocks on macos  (Read 2956 times)

yotama9

  • Guest
opening a project in code::blocks on macos
« 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
« Last Edit: August 22, 2010, 04:07:55 pm by yotama9 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: opening a project in code::blocks on macos
« Reply #1 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:
(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!]