Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a problem to compile this code
http://gfx.cs.princeton.edu/gfx/proj/sugcon/software/rtsc-1.6.zip

I used Dev c++ in windows and solve some errors,and i spent a week to solve problems, but some other errors is still exist.
my refactored code of above code is here:

<a href="https://ufile.io/kcasp"></a>

and i get this errors:

<a href="https://ufile.io/9diq3"></a>


What I have tried:

i try all ways to sovle linker error "undefined refrence", but i cant success.
Posted
Updated 8-Jun-18 0:11am
v4
Comments
CPallini 8-Jun-18 5:49am    
Please report the exact erro message in order to get better help.
RedDk 8-Jun-18 14:22pm    
"undefined reference" ... is weird to me but I don't use Dev C++ ... you'll note though that this project DOES require TriMesh so perhaps if you go to the link you've pasted and read the README file to get the trimesh link so you can download that code, and then try again ... I mean there's apparentridge.cc and it NEEDS trimesh.h. Another for-instance ... the other set of includes you'll be needing for the graphics handling, the outdate GLUT/OGL headers (presumeably the libraries as well there).

In TriMesh ... there's actually an MS project for that, posted by some good guy who does nice things in his freetime. Perhpas switch your compiler/linker to some flavor of VS free-version.

I'm not going to download an unpack a ZIP archive or visit a link to see a compiler / linker error message.

Please edit your question by using the green 'Improve question' link and add the full error message (just copy and paste it) and information about the function mentioned in the error message (where the function is defined).

However:
With linker errors, the message contains a function name. Locate the module containing that function. It is probably either a library or a source file.

If it is a library, you have to specify that library in your project to be linked with your application.

If it is a source file, you have to add that to your project so that it is compiled and linked with your application.
 
Share this answer
 
Comments
CPallini 8-Jun-18 5:48am    
5.
It is obvious that the linker is complaining about the URL of the resource. So check that
a) this configuration and use of the resoure is allowed by the IDE
b) the file exists and it has the correct data format
c) that the linker has the access rights (like internet access and access to this URL)

Because of the https protocol the file access may be restricted. I would try to download the data and put it locally in the project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900