Giter Club home page Giter Club logo

Comments (9)

pinecone69 avatar pinecone69 commented on May 23, 2024

I'm also getting this error. Auburn doesn't explicitly say how to link the library using visual studio.

from fastnoise2.

Auburn avatar Auburn commented on May 23, 2024

Are you compiling the FastNoise 2 source your self or using the pre compiled binaries from one of the releases?

from fastnoise2.

pinecone69 avatar pinecone69 commented on May 23, 2024

Are you compiling the FastNoise 2 source your self or using the pre compiled binaries from one of the releases?

I've tried both and still get linker errors. If you want I can go into further detail on how I compiled FastNoise 2 and/or used the pre compiled binaries.

from fastnoise2.

Auburn avatar Auburn commented on May 23, 2024

You should be linking to FastNoise.lib in your visual studio project. Also make sure you are using the headers from the same FastNoise 2 version as the lib file was built using

from fastnoise2.

pinecone69 avatar pinecone69 commented on May 23, 2024

You should be linking to FastNoise.lib in your visual studio project. Also make sure you are using the headers from the same FastNoise 2 version as the lib file was built using

I'm using Unreal Engine 4 and following their examples on how to link third party libraries. After I have compiled FastNoise2 I linked FastNoise.lib to my project and have added include paths for the headers - the same version as the library. There must be something else?

from fastnoise2.

caseymcc avatar caseymcc commented on May 23, 2024

Added info on including the lib, https://github.com/Auburn/FastNoise2/wiki/Including-the-library-in-your-project.

from fastnoise2.

connorjak avatar connorjak commented on May 23, 2024

I was able to resolve this myself in this way:

// FastNoise_Config.h
-#define FASTNOISE_USE_SHARED_PTR false
+#define FASTNOISE_USE_SHARED_PTR true
// The only place I #include FastNoise
#define FASTNOISE_STATIC_LIB
#include <FastNoise/FastNoise.h>

I was using UnrealCMake to compile FastNoise from source.

from fastnoise2.

caseymcc avatar caseymcc commented on May 23, 2024

@connorjak was your link errors the same as above?

Its likely better to link as a static lib since the plugin for UE4 will already be a dll.

from fastnoise2.

connorjak avatar connorjak commented on May 23, 2024

Yes exactly the same errors

from fastnoise2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.