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"

Problem with linking boost in plugin (LNK1104)


I´m including the pcl library (and therefore also boost and eigen) in a plugin, using the Tutorial from Valentin Kraft. Actually I did use his code from github and had no problems compiling it.

Then I wanted to use a PCDWriter in a method - since then I got a linking error:

LNK1104 cannot open file 'libboost_thread-vc141-mt-1_64.lib'

But in my project, everything is there: alt text

I also tried deleting the Binary and Intermediate folder and refreshing the VS project as this is sometimes mentioned als solution for linking problems.

Any Ideas what I can try?

Product Version: UE 4.19
more ▼

asked Sep 25 '18 at 10:56 AM in C++ Programming

avatar image

79 4 6 10

avatar image DaKenpachi Sep 27 '18 at 12:16 PM

Ok I found out some things:

1) The Path to the lib file was not there. Somehow the line PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Boost/lib/libboost_thread-vc141-mt-1_64.lib")); in the PCL.build.cs did not do the job. If I add the path to the lib files manually in the VS project settings, the error goes away (and is replaced by some other, internal error meaning I actually cant use the lib file).

2) The need of having the libboost_thread-vc141-mt-1_64.lib is also defined somewhere else, and I cant find where. Because when I want to include another version of the lib ( libboost_thread-vc140-mt-1_64.lib comming with the current download of PCL 1.8.1) and change the line to PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Boost/lib/libboost_thread-vc140-mt-1_64.lib")); it still has the error "cant open libboost_thread-vc14 1 -mt-1_64.lib"

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

0 answers: sort voted first
Be the first one to answer this question
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