mustangV / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

x64 Windows build broken #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout http://yara-project.googlecode.com/svn/trunk/ 
yara-project-read-only
2. open up yara.sln in Visual Studio 2008 Professional from ../windows/yara 
directory
3. set Solution Platform to x64 and build

What is the expected output? What do you see instead?
Expect it to build the 64 bit version of yara.exe.
Build fails with error: 
libyara64.lib(ast.obj) : error LNK2001: unresolved external symbol hash

What version of the product are you using? On what operating system?
Top level "REVISION" lists '148'.
Using Windows 7 64bit (AMD)

Please provide any additional information below.
The 32 bit build runs successfully.
The 64 bit version of project 'libyara' builds successfully.
Notes for attempts with VS2010 after the conversion.
  - 32 bit version fails (interesting) with same error but with the following additional information: "libyara32.lib(ast.obj) : error LNK2019: unresolved external symbol _hash referenced in function _lookup_rule"
  - 64 bit version fails with same errors given in VS2008 x64 build.
  - in all scenarios the project 'libyara' builds successfully.

Original issue reported on code.google.com by skippyVo...@gmail.com on 8 Aug 2012 at 3:17

GoogleCodeExporter commented 8 years ago
Hi had the same problem, it will compile if you remove the inline directive 
from the functions in hash.h and hash.c
But I recommend you that change the compiler the current version of mingw for 
64bits, works very well, is free and I get better performance than with the 
VS2008 build.

Original comment by golgotr...@gmail.com on 13 Aug 2012 at 12:49

GoogleCodeExporter commented 8 years ago
remove “inline” works!

Original comment by Leftzh...@gmail.com on 3 Oct 2012 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by plus...@gmail.com on 4 Apr 2013 at 2:26