[haiku-gsoc] Re: Undefined reference to :: error

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Sun, 11 Jun 2017 13:54:30 +0000

On Mon, 12 Jun 2017, 1:32 AM digib0y <code.deepanshu@xxxxxxxxx> wrote:

Hi,

I am working on my Demo Harfbuzz and I encountered this error on every
line of code, maybe someone can help me out: https://pastebin.com/9TJFwwDe

I ran setarch x86 as ee have harfbuzz and freetype2 under
SYSTEM_INCLUDE_PATHS in make file with x86 path so the current code needs
x86 environment to compile.

I tried stackover flow and what I understand is this happens when compiler
cannot link the header and the source file so to fix this I tried this:
1. Added my project directory to LOCAL_INCLUDE_PATHS
2. Tried "gcc -o app.h app.cpp MainWindows.cpp MainWind......"
3. Added freetypelib.cpp to my SRCS
4. Added some libs "LIBS = be harfbuzz freetype stdc++"
Still no luck.


For starters, always use g++ for C++ projects. That will usually
automatically include extra libs and things. Also, the order of libraries
matters when linking.

Other related posts: