Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualnoatom

Posted 19 December 2013 - 02:26 PM

as the code is designed for linux,is includes pthread.h ...what do i do on windows?


#3noatom

Posted 19 December 2013 - 02:21 PM

Ok,I DID get over the recompilation,just to get to the janson errors:

1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(95): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(96): error C2085: 'json_incref' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(96): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(106): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(107): error C2085: 'json_decref' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(107): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(157): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(158): error C2085: 'json_object_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(158): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(163): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(164): error C2085: 'json_object_set_nocheck' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(164): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(169): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(170): error C2085: 'json_object_iter_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(170): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(184): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(185): error C2085: 'json_array_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(185): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(190): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(191): error C2085: 'json_array_append' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(191): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(196): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(197): error C2085: 'json_array_insert' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(197): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(8): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(9): error C2085: 'sleep' : not in formal parameter list
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(9): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(17): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(18): error C2085: 'setpriority' : not in formal parameter list
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(18): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\miner.h(9): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1>  sha2.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\miner.h(9): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1>  scrypt.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\miner.h(9): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
1>  cpu-miner.c
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(95): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(96): error C2085: 'json_incref' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(96): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(106): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(107): error C2085: 'json_decref' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(107): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(157): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(158): error C2085: 'json_object_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(158): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(163): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(164): error C2085: 'json_object_set_nocheck' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(164): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(169): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(170): error C2085: 'json_object_iter_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(170): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(184): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(185): error C2085: 'json_array_set' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(185): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(190): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(191): error C2085: 'json_array_append' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(191): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(196): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(197): error C2085: 'json_array_insert' : not in formal parameter list
1>c:\users\enjoydrama\desktop\janson\jansson-2.5\src\jansson.h(197): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(8): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(9): error C2085: 'sleep' : not in formal parameter list
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(9): error C2143: syntax error : missing ';' before '{'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(17): error C2054: expected '(' to follow 'inline'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(18): error C2085: 'setpriority' : not in formal parameter list
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\compat.h(18): error C2143: syntax error : missing ';' before '{'

Now,is there anybody who knows to fix them?


#2noatom

Posted 19 December 2013 - 01:48 PM

\util.c : fatal error C1853: 'Debug\test.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

 

first error in new vs 2013 project

 

 

oh yeah,wait....the libs were probably compiled with vs 2006 so they might not be compatible....rebuild those too? I think not,I'm done with this.


#1noatom

Posted 19 December 2013 - 01:46 PM

\util.c : fatal error C1853: 'Debug\test.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

 

first error in new vs 2013 project


PARTNERS