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"

Problems linking sphelper.h - ATL::CAtlBaseModule

I can't seem to get this to link when I try to package, yet it compiles and runs fine in the editor.

 #include "AllowWindowsPlatformTypes.h"
 #pragma warning(push)
 #pragma warning(disable: 4191)
 #pragma warning(disable: 4996)
 #ifndef DeleteFile
 #define DeleteFile DeleteFileW
 #endif
 #ifndef MoveFile
 #define MoveFile MoveFileW
 #endif
 #include "sapi.h"
 #include "sphelper.h"
 #undef DeleteFile
 #undef MoveFile
 #pragma warning(pop)
 #include "HideWindowsPlatformTypes.h"

And this is the error I'm getting

 MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: [4/4] Link OdysseyVirtual.exe
 MainFrameActions:Packaging (Windows (32-bit)):UnrealBuildTool: Creating library C:\Users\Alex\Document\Unreal Projects\OdysseyVirtual\Binaries\Win3\OdysseyVirtual.lib and objectC:\Users\Alex\Documents\Unreal Projects\OdysseyVirtual\Binaries\Win32\OdysseyVirtual.exp
 MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: SpeakerComponent.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
 MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: SpeechSystem.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
 MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: OdysseyVirtual.generated.cpp.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
 MainFrameActions: Packaging (Windows (32-bit)): UnrealBuildTool: C:\Users\Alex\Documents\Unreal Projects\OdysseyVirtual\Binaries\Win32\OdysseyVirtual.exe: fatal error LNK1120: 1 unresolved externals

Is there anything I can do?

Product Version: UE 4.9
Tags:
more ▼

asked Nov 08 '15 at 05:20 PM in C++ Programming

avatar image

judgementalex
21 5 7 10

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

1 answer: sort voted first

Solved it with

 PublicAdditionalLibraries.Add("atls.lib");
more ▼

answered Nov 16 '15 at 04:15 PM

avatar image

judgementalex
21 5 7 10

(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