473,796 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is "Undefined first referenced symbol in file"

hi, when compiling using makefile on unix, I encounter such problem,
anyone has similar experience on this?
what could be the possible cause? thanks
make OBJS=out/release "EXTRAFLAGS =-O -DNDEBUG" world

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/IDODBInterface. cpp -o out/release/IDODBInterface. o

usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -Iusr/include
-I/u04/app/ilog/cplex71/include -I/u04/app/ilog/concert11/include
-I/u04/app/ilog/dblink50/include src/IDODataA.cpp -o
out/release/IDODataA.o

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/IDOEngineImplA. cpp -o out/release/IDOEngineImplA. o

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/IDOTextInterfac e.cpp -o out/release/IDOTextInterfac e.o

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/helpers.cpp -o out/release/helpers.o

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/ildutil.cpp -o out/release/ildutil.o

/u04/app/forte/SUNWspro/bin/CC -c -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
src/main.cpp -o out/release/main.o

/u04/app/forte/SUNWspro/bin/CC -O -DNDEBUG -pto -PIC -DIL_STD
-DILDORACLE -I/usr/include -I/u04/app/ilog/cplex71/include
-I/u04/app/ilog/concert11/include -I/u04/app/ilog/dblink50/include
out/release/IDODBInterface. o out/release/IDODataA.o out/release/ID
OEngineImplA.o out/release/IDOTextInterfac e.o out/release/helpers.o
out/release/ildutil.o out/release/main.o -L/export/home/liguan/lib
-lcommon -L/u04/app/ilog/cplex71/lib/sparc_5_5.0/static_pic_mt
-lilocplex -lcplex -L/u04/app/ilog/concert11/lib/sparc_5_
5.0/static_pic_mt -lconcert -L/u01/app/oracle/product/8.1.7/lib
-lclntsh -L/u04/app/ilog/dblink50/lib/sparc_5_5.0/static_pic_mt
-ldbora81 -ldbkernel -ldblnkst -lilog -lsocket -lnsl -lthread -ldl -o
out/engine

Undefined first referenced

symbol in file

std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch ar>
>,std::allocato r<std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char FpcIntegration: :solveFPC(doubl e) out/release/IDODataA.o
FpcIntegration: :FpcIntegration () out/release/IDODataA.o

ld: fatal: Symbol referencing errors. No output written to out/engine

*** Error code 1

make: Fatal error: Command failed for target `out/engine'

Current working directory /export/home/liguan/IDO

*** Error code 1

make: Fatal error: Command failed for target `release'

$

Jan 4 '07 #1
2 19606

"Will hunting" <li******@gmail .comwrote in message
news:11******** **************@ 51g2000cwl.goog legroups.com...
hi, when compiling using makefile on unix, I encounter such problem,
anyone has similar experience on this?
what could be the possible cause? thanks
<SNIP>
Undefined first referenced

symbol in file

std::vector<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch ar>
>>,std::allocat or<std::basic_s tring<char,std: :char_traits<ch ar>,std::alloca tor<char>
FpcIntegration: :solveFPC(doubl e) out/release/IDODataA.o

FpcIntegration: :FpcIntegration () out/release/IDODataA.o

ld: fatal: Symbol referencing errors. No output written to out/engine

*** Error code 1

make: Fatal error: Command failed for target `out/engine'

Current working directory /export/home/liguan/IDO

*** Error code 1

make: Fatal error: Command failed for target `release'
Sounds like you forgot to:
#include <string>
#include <vector>

Or, the method:
solveFPC in the class FpcIntegration is not defined.
Jan 4 '07 #2
thanks, I have found that in my makefile, I forgot to add -lfpc to
include the libfpc.so shared objects, so that when linking, error msg
symbol not defined appeared.

Jan 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
19394
by: Stephen Oakes | last post by:
I am trying to upload an image to a server, but I get this warning: Warning: imagecreatefromjpeg(): 'filename' is not a valid JPEG file The error occurs when I am trying to create a thumbnail from the image. I can subsequently display the JPG image itself, but the thumbnail creation fails. I have tried this with hundreds of other images from the same source and they work fine. I have looked around on Google and it seems that others...
2
2855
by: Henrik | last post by:
Hi Im trying to make an app that uses threading, I want to write to a file in a loop. How can i ensure that only one thread writes to the file a the time??? Im accessing the fil with: Dim xFile As StreamWriter
4
3503
by: Michael | last post by:
Hi When I New a web site, the default coding model is code-separation. I can uncheck the "place code in separate file" checkbox when I add a new WebForm, and VS2005 will remember this setting. I'm wondering where does VS2005 store the settings for "place code in separate file"?
0
6072
by: Ashish | last post by:
I am using the following code and i am getting the following error :- "Cannot access a closed file." while reading the content of the InputStream. Microsoft suggestes that one should not release the stream before accessing the same.But here i am not releasing the stream.Suggestions/pointers will be appreciated. Thanks in advance Ashish
0
1816
by: WORKING IN FAITH | last post by:
three years I LOVE You Monica More options 1 message - Collapse all WORKING IN FAITH View profile More options Nov 13, 11:29 am three years I LOVE You Monica
0
4178
by: Peter Nofelt | last post by:
Hi all, ISSUE: ==================== In SQL 2005 (sp2) I get the following error when preforming a bulk insert with an associated xml format file: "Could not bulk insert. Unknown version of format file" Question:
16
43734
by: Micko1 | last post by:
Hello there :) I have been using Visual Studio on a program which I have just completed, however I need to have it compiling using a unix based compiler, when I try in cygwin, I get the following error: undefined reference to `_WinMain@16' I have tried searching for a workaround, although I am not a programming guru, and I find it difficult to comprehend the discussions on this topic :) Any help is appreciated.
11
3895
by: MC | last post by:
I have a couple of customers who are using a program that deserializes an XML file, and on some files, the program fails to see the content of the file -- treats it as zero length and reports "root element is missing" -- even though in Notepad the file looks normal. Has anybody ever seen this? Any clues? I have not been able to reproduce it on my computer. In general, when they e-mail me the files, the files arrive perfectly normal. ...
1
3272
by: pauld | last post by:
Hello - I have created a simple web application in VS 2005/ASP.net 2.0 for a university department to track problems with a new website that I have built for them. The app consists of an Access 2003 db configured to use the aspnet role provider (via the "unreleased" Access Providers) and it also has a "bugs" table that stores the data relevant to problems reported by users. Users login via an asp.net login control and from there can...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.