Perplex

Compiling TitanEngine by VS2015 failed

8 posts in this topic

Don't compile with VS2015, only VS2010 is supported.

Share this post


Link to post
Share on other sites

08 and 10 is a classic.

Share this post


Link to post
Share on other sites

Posted (edited)

Hi,
I already took the time (and the headaches) to do such a compilation.

Here's my "tweaked" project. It's not clean nor glitches-free, but it compiles ;) Anyone is welcome to adjust it to make it more tidy and/or useful.
The project defaults to static lib compilation. You might have to tweak the "client" project too to use the compiled library (because of some linker flags I chose).

Hope it's useful.

Best Regards,
Tony
 

TitanEngineUpdate.vs2015.rar

Credits to ReversingLabs, Mr.eXoDia et al.

 

 

Edited by tonyweb
3 people like this

Share this post


Link to post
Share on other sites

(new post just to enable notifications for who downloaded it already)

Just tried on another installation and you might need to follow this advice if you have error rc1015 for afxres.h:

http://stackoverflow.com/questions/35436654/cant-open-resource-file-in-vs-2015-cant-open-include-file-afxres-h#38785446

and modify TitanEngine.rc as follows:

/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
//#include "afxres.h"
#define IDC_STATIC -1
#include "WinResrc.h"

or, maybe, you can follow this advice

http://stackoverflow.com/questions/3566018/cannot-open-include-file-afxres-h-in-vc2010-express#25809810

and create your own afxres.h

#pragma once

#ifndef _AFXRES_H
#define _AFXRES_H

#if __GNUC__ >= 3
#pragma GCC system_header
#endif

#ifdef __cplusplus
extern "C" {
#endif

#ifndef _WINDOWS_H
#include <windows.h>
#endif

	/* IDC_STATIC is documented in winuser.h, but not defined. */
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif

#ifdef __cplusplus
}
#endif

#endif

Regards,
Tony

 

 

Edited by tonyweb
code highlight
2 people like this

Share this post


Link to post
Share on other sites
6 hours ago, tonyweb said:

Just tried on another installation and you might need to follow this advice if you have error rc1015 for afxres.h:

Just use the visual studio installer to get MFC that should do the trick...

2 people like this

Share this post


Link to post
Share on other sites

@tonyweb Are you have TitanEngine sample with VS2015? I can't import static lib error in my side (Error LNK2019 unresolved external symbol __imp__AddNewSection referenced in function _main)

Share this post


Link to post
Share on other sites

@Perplex
Well, this goes a bit beyond the scope of your initial question. Anyway, I had some free minutes and prepared a really basic Win32 project to start with.

Here it is. TitanUpdate.Test.rar

Again, this is not a perfect configuration, but it should compile fine at your end too.

Regards,
Tony

Edited by tonyweb
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now