Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6700087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:46:21+00:00 2026-05-26T06:46:21+00:00

Using Microsoft Visual C++ I am trying to compile the file "test.cc" which is

  • 0

Using Microsoft Visual C++ I am trying to compile the file "test.cc" which is part of a small package available for free download at

http://sourceforge.net/projects/clippoly/files/

The file test.cc appears as follows:

//    nclip: a polygon clip library

//    Copyright (C) 1993  University of Twente

//    klamer@mi.el.utwente.nl

//    This library is free software; you can redistribute it and/or
//    modify it under the terms of the GNU Library General Public
//    License as published by the Free Software Foundation; either
//    version 2 of the License, or (at your option) any later version.

//    This library is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//    Library General Public License for more details.

//    You should have received a copy of the GNU Library General Public
//    License along with this library; if not, write to the Free
//    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#include <cstring>
#include <iostream>

#include "poly.h"
#include "poly_io.h"
#include "nclip.h"

using namespace ::std;

void
clear(PolyPList &l)
{
    PolyPListIter i(l);
    while(i())
        delete i.val();
}

int
main(int, char *[])
{
    Poly *a = read_poly(cin), *b = read_poly(cin);
    PolyPList a_min_b, b_min_a, a_and_b;

    clip_poly( *a, *b, a_min_b, b_min_a, a_and_b );

    cout << "a_min_b:\n" << a_min_b;
    cout << "b_min_a:\n" << b_min_a;
    cout << "a_and_b:\n" << a_and_b;

    delete  a;
    delete  b;

    clear(a_min_b);
    clear(b_min_a);
    clear(a_and_b);

    return 0;
}

The test file is designed to demonstrate calculation of the intersection of two input polygons.

I have included paths to the necessary header files in ‘Project->Properties->VC++ Directories->Include Directories’ and the compiler is recognizing the existence of "poly.h", "poly_io.h" and "nclip.h".

however when I try compile I get the following linker errors:

test.obj : error LNK2019: unresolved external symbol "private: __thiscall PolyNode::~PolyNode(void)" (??1PolyNode@@AAE@XZ) referenced in function "private: void * __thiscall PolyNode::scalar deleting destructor'(unsigned int)"` (??_GPolyNode@@AAEPAXI@Z)

test.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class Set<class Poly *> const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABV?$Set@PAVPoly@@@@@Z) referenced in function _main

test.obj : error LNK2019: unresolved external symbol "void __cdecl clip_poly(class Poly const &,class Poly const &,class Set<class Poly *> &,class Set<class Poly *> &,class Set<class Poly *> &)" (?clip_poly@@YAXABVPoly@@0AAV?$Set@PAVPoly@@@@11@Z) referenced in function _main

test.obj : error LNK2019: unresolved external symbol "class Poly * __cdecl read_poly(class std::basic_istream<char,struct std::char_traits<char> > &)" (?read_poly@@YAPAVPoly@@AAV?$basic_istream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main

What am I doing wrong? I’ve tried to add paths all over the place under ‘Project->Properties’. But now I am at a loss.

I hope this is a fairly simple question for someone 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:46:21+00:00Added an answer on May 26, 2026 at 6:46 am

    It looks as though you have told the compiler where the header files are, but not told the linker where it can find the library that contains the Poly class.

    I don’t have Visual Studio in front of me so the following route through the interface might not be spot on, but from memory you need to add the library (.lib) through Project->Properties->Linker->Input->Additional Dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a dll plugin for Winamp. I'm using Microsoft Visual Studio
How to export pictures in Microsoft Word to TIFF file using Visual Studio Tools
I was trying to compile our project in Visual Studio 2010 using the 2005
I'm trying to do a Banner Rotator with ASP.Net C# by using Microsoft Visual
I am using Microsoft Visual Web Developer 2008 Express. I've made an ASP.NET MVC
I'm using Microsoft Visual C# 2008 Express. In my main form, there's that X
I am using a makefile system with the pvcs compiler (using Microsoft Visual C++,
I'm a developer who works on both individual and group projects using Microsoft Visual
I'm trying to compile a block of example code using Thrust in an attempt
I was trying to use Firebird embedded server with Microsoft Visual C# 2010. so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.