x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to add external code to a project? (Getting 'unresolved external symbol' errors)

I'm trying to add FastNoise (https://github.com/Auburns/FastNoise) to a c++ project. I've successfully linked third party libraries to a project before, but FastNoise just seems to be a .h and .cpp file (no .lib or.dll) so I'm not sure how to add it to a project.

I tried simply adding FastNoise.h and FastNoise.cpp to my project's source folder, and then including the header and using a function, but the compiler throws LNK2019 errors:

 LNK2019    unresolved external symbol "public: void __cdecl FastNoise::SetSeed(int)" (?SetSeed@FastNoise@@QEAAXH@Z) referenced in function "public: class TArray<float,class FDefaultAllocator> __cdecl UNoiseMakerComponent::Make2DHeightMap(int,int)" (?Make2DHeightMap@UNoiseMakerComponent@@QEAA?AV?$TArray@MVFDefaultAllocator@@@@HH@Z)

So it seems like the code isn't being properly linked? I see other people are using FastNoise in the work, but I can't figure out what they're doing differently.

Product Version: UE 4.21
Tags:
more ▼

asked Feb 21 '19 at 01:32 PM in C++ Programming

avatar image

localstarlight
63 15 22 29

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It seems like that library has a specific UE4 plugin that you can use:

https://github.com/midgen/UnrealFastNoise

As far as adding third party code to your project, check out this post

more ▼

answered Feb 21 '19 at 10:13 PM

avatar image

BenjaFriend
39 3 5

avatar image localstarlight Feb 22 '19 at 12:42 PM

Awesome, thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question