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. 

[Solved] CollisionConversions unresolved symbols

I am getting an unresolved external symbols linking error to some of the functions in CollisionConversions which I am using in my code. CollisionConversions lives in: Engine/Private/Collisions My understanding was that I would need the Engine module since this is a subset of engine. I am using ConvertQueryImpactHit.

 error LNK2019: unresolved external symbol "enum EConvertQueryResult __cdecl ConvertQueryImpactHit(class UWorld const *,struct physx::PxLocationHit const &,struct FHitResult &,float,struct physx::PxFilterData const &,struct FVector const &,struct FVector const &,class physx::PxGeometry const * const,class physx::PxTransform const &,bool,bool)" (?ConvertQueryImpactHit@@YA?AW4EConvertQueryResult@@PEBVUWorld@@AEBUPxLocationHit@physx@@AEAUFHitResult@@MAEBUPxFilterData@4@AEBUFVector@@4QEBVPxGeometry@4@AEBVPxTransform@4@_N7@Z) 

I have Core, PhysX, and APEX in PublicDependencyModuleNames and Engine and CoreUObject in PrivateDependencyModuleNames.

I am including the relevant headers:

 #include "PhysXIncludes.h"
 #include "PhysicsPublic.h"
 #include "PhysXPublic.h"
 #include "Runtime/Engine/Private/PhysicsEngine/PhysXSupport.h"
 #include "Runtime/Engine/Private/Collision/PhysXCollision.h"
 #include "Runtime/Engine/Private/Collision/CollisionConversions.h"

What am I doing wrong here and/or misunderstanding about the module system? Linking error goes away if I remove the ConvertQueryImpactHit function but obviously I am wanting to use this convenient function and will likely run into errors like these again in the future in UE4 if I don't fix my understanding.

Product Version: UE 4.18
Tags:
more ▼

asked Nov 28 '18 at 02:56 PM in C++ Programming

avatar image

bad-wulf
11 2 1 5

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

1 answer: sort voted first

Those functions in that file are not being exposed in the engine module. That's what is being indicated by the fact that the header file is in the Private folder. They exist in the engine libraries but their symbols are not publicly accessible. If you wanted to expose them you'd have to change the engine and build it from source.

more ▼

answered Nov 28 '18 at 10:59 PM

Brian Johnstone (suspended)
avatar image bad-wulf Nov 28 '18 at 11:19 PM

Thanks, I figured as much earlier and worked around it. Surprised so many useful things are not publicly exposed.

(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