problem with : (.bss+0x0):-1: error: multiple definition of `g_usageText'
hey I am new to Qt..
I am trying to study a program used to render font outlines using freetype2.
I am getting following error:
Code:
(.bss+0x0):-1: error: multiple definition of `g_usageText'
(.bss+0x0):-1: error: first defined here
(.bss+0x0):-1: error: multiple definition of `g_usageText'
(.bss+0x0):-1: error: first defined here
:-1: error: collect2: ld returned 1 exit status
my .pro file is:
Code:
QT += core gui
TARGET = 2_sept_app1
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
MOC_DIR = ./moc
LIBS += -lz -lfreetype
INCLUDEPATH += $$MOC_DIR \
/usr/include/freetype2 \
/usr/lib
HEADERS += widget.h
I searched on Google and modified .pro file with that 'MOC_DIR' entries....but still problem persists
how do I solve this problem?
Re: problem with : (.bss+0x0):-1: error: multiple definition of `g_usageText'
The problem is rather with the code than with the project file. It seems *something* (whatever g_usageText is) is set twice in your program.
Re: problem with : (.bss+0x0):-1: error: multiple definition of `g_usageText'
hey sorry... actually it was my typing mistake...
declared g_UsageText twice ...
Thanks for reply.