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"

Linking errors using code from my own module

Hello,

I have got an own module with code unrelated to the Unreal ecosystem. Thats also the reason I wanted to seperate it from the other code by putting it in an own module. It compiles well and a module .dll is created. Defining my classes in a header file of the primary module is also working, but as soon as I try to create an instance of that class in a .cpp the linker can not find that class anymore.

 1>URiftHUD.cpp.obj : error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol ""public: __cdecl lsd_slam::InputOutputWrapper::InputOutputWrapper(void)" (??0InputOutputWrapper@lsd_slam@@QEAA@XZ)" in Funktion ""public: __cdecl AURiftHUD::AURiftHUD(class FObjectInitializer const &)" (??0AURiftHUD@@QEAA@AEBVFObjectInitializer@@@Z)".
 1>URiftHUD.cpp.obj : error LNK2001: Nicht aufgel÷stes externes Symbol ""private: static class lsd_slam::InputOutputWrapper * AURiftHUD::ioWrapper" (?ioWrapper@AURiftHUD@@0PEAVInputOutputWrapper@lsd_slam@@EA)".

I can not think of or find a reason for that. What may be the reason my classes are not linked? What am I doing wrong?
I am using 4.7.2 and Windows 7.

Thanks in advance

Product Version: Not Selected
Tags:
more ▼

asked Apr 22 '15 at 03:24 PM in C++ Programming

avatar image

maschu
6 2 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I externalised my code and build my own lib. My module type is now external.

 Type = ModuleType.External;

This should work now.

more ▼

answered Apr 30 '15 at 02:39 PM

avatar image

maschu
6 2 4

(comments are locked)
10|2000 characters needed characters left
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