• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
noatom

Can someone make this VS 2010?

12 posts in this topic

I'm confused why don't you just create a new project. Import the files and build the project. If anything arises VS 2010 will let you know on the build and you can debug and fix from there, also you post your warning / errors and I am sure this community would love to assist you.

1

Share this post


Link to post
Share on other sites

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

Edited by noatom
0

Share this post


Link to post
Share on other sites

Ok...now I really got stuck....

 

 

There are so many defines that it says it can't find but they are included...

 

And the void pointers...they should be cast into something since c++ is more restrictive...but cast them into what?!

1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>  util.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): warning C4133: 'function' : incompatible types - from 'time_t *' to 'tm *'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): error C2198: 'localtime_s' : too few arguments for call
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): warning C4047: '=' : 'tm *' differs in levels of indirection from 'errno_t'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(150): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(151): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(162): warning C4018: '>' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(166): error C2036: 'const void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(180): warning C4244: '=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(183): warning C4244: '+=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(186): warning C4244: '=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(211): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(217): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(232): warning C4013: 'strcasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(362): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(362): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(380): warning C4013: 'strncasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(456): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(563): warning C4244: '=' : conversion from 'double' to 'uint64_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(849): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(849): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(851): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(851): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(896): warning C4244: '=' : conversion from 'json_int_t' to 'int', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1092): warning C4244: '=' : conversion from 'json_int_t' to 'int', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): error C2065: 'PACKAGE_NAME' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): warning C4024: 'json_string' : different types for formal and actual parameter 1
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): error C2143: syntax error : missing ')' before 'string'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): warning C4013: 'typeof' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): warning C4552: '!=' : operator has no effect; expected operator with side-effect
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2143: syntax error : missing ')' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2143: syntax error : missing '{' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2059: syntax error : '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2143: syntax error : missing ')' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2143: syntax error : missing '{' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2059: syntax error : '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2059: syntax error : ','
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2143: syntax error : missing ')' before 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2143: syntax error : missing '{' before 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2059: syntax error : 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1231): error C2371: 'free' : redefinition; different basic types
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdlib.h(641) : see declaration of 'free'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1232): error C2059: syntax error : '}'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1246): warning C4013: 'tq_freezethaw' undefined; assuming extern returning int
1>  sha2.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): warning C4013: '__attribute__' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): warning C4013: 'aligned' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(588): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(589): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(590): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>  scrypt.c
1>  cpu-miner.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(315): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio.h(356) : see declaration of 'sprintf'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(409): warning C4013: 'gettimeofday' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(555): warning C4244: 'function' : conversion from 'time_t' to 'uint32_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(636): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(743): warning C4244: '*=' : conversion from 'double' to 'int64_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(749): warning C4244: '=' : conversion from 'int64_t' to 'uint32_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1002): error C2065: 'PACKAGE_STRING' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1100): warning C4013: 'strncasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1230): warning C4013: 'getopt' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): error C2065: 'optarg' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): warning C4024: 'parse_arg' : different types for formal and actual parameter 2
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1237): error C2065: 'optind' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1239): error C2065: 'optind' : undeclared identifier
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Edited by noatom
0

Share this post


Link to post
Share on other sites

Hi again,

 

my suspicion is that you are not compiling the code with the MinGW compiler as mentioned in the Readme of the repository.

If so then the built-in VS compiler will try to do the job.

Referring to this Thread (sorry for cross-site linking) http://stackoverflow.com/questions/8525470/porting-c-compilation-from-mingw-to-visualstudionmake there can be several situations that are not covered in the standard or differ depending on the standard that is used.

 

So if you aren't compiling with MinGW as it is recommended please get active and do so.

You can ignore my post if you're already using MinGW.

 

1

Share this post


Link to post
Share on other sites

so why do you think i asked in the first post for help...? maybe because i got stuck in the hurdles of mingw? Then i had 2 posts suggesting me to use visual studio,which I did...

-2

Share this post


Link to post
Share on other sites

 

Ok...now I really got stuck....

 

 

There are so many defines that it says it can't find but they are included...

 

And the void pointers...they should be cast into something since c++ is more restrictive...but cast them into what?!

1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>  util.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): warning C4133: 'function' : incompatible types - from 'time_t *' to 'tm *'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): error C2198: 'localtime_s' : too few arguments for call
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(100): warning C4047: '=' : 'tm *' differs in levels of indirection from 'errno_t'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(150): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(151): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(162): warning C4018: '>' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(166): error C2036: 'const void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(180): warning C4244: '=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(183): warning C4244: '+=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(186): warning C4244: '=' : conversion from 'curl_off_t' to 'size_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(211): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(217): error C2036: 'void *' : unknown size
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(232): warning C4013: 'strcasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(362): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(362): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(380): warning C4013: 'strncasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(456): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(563): warning C4244: '=' : conversion from 'double' to 'uint64_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(849): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(849): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(851): error C2146: syntax error : missing ')' before identifier 'PACKAGE_NAME'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(851): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(896): warning C4244: '=' : conversion from 'json_int_t' to 'int', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1092): warning C4244: '=' : conversion from 'json_int_t' to 'int', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): error C2065: 'PACKAGE_NAME' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): warning C4024: 'json_string' : different types for formal and actual parameter 1
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1119): error C2143: syntax error : missing ')' before 'string'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): warning C4013: 'typeof' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1222): warning C4552: '!=' : operator has no effect; expected operator with side-effect
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2143: syntax error : missing ')' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2143: syntax error : missing '{' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2059: syntax error : '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1227): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2143: syntax error : missing ')' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2143: syntax error : missing '{' before '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2059: syntax error : '&'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1228): error C2059: syntax error : ')'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2059: syntax error : ','
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2143: syntax error : missing ')' before 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2143: syntax error : missing '{' before 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1230): error C2059: syntax error : 'constant'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1231): error C2371: 'free' : redefinition; different basic types
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdlib.h(641) : see declaration of 'free'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1232): error C2059: syntax error : '}'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\util.c(1246): warning C4013: 'tq_freezethaw' undefined; assuming extern returning int
1>  sha2.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): warning C4013: '__attribute__' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(587): warning C4013: 'aligned' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(588): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(589): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\sha2.c(590): error C2146: syntax error : missing ';' before identifier '__attribute__'
1>  scrypt.c
1>  cpu-miner.c
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(315): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio.h(356) : see declaration of 'sprintf'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(409): warning C4013: 'gettimeofday' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(555): warning C4244: 'function' : conversion from 'time_t' to 'uint32_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(636): warning C4018: '<' : signed/unsigned mismatch
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(743): warning C4244: '*=' : conversion from 'double' to 'int64_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(749): warning C4244: '=' : conversion from 'int64_t' to 'uint32_t', possible loss of data
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1002): error C2065: 'PACKAGE_STRING' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1100): warning C4013: 'strncasecmp' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1230): warning C4013: 'getopt' undefined; assuming extern returning int
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): error C2065: 'optarg' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1235): warning C4024: 'parse_arg' : different types for formal and actual parameter 2
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1237): error C2065: 'optind' : undeclared identifier
1>c:\users\enjoydrama\documents\visual studio 2013\projects\test\test\cpu-miner.c(1239): error C2065: 'optind' : undeclared identifier
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

So, this is not a C++ library but a C library. I believe there is a project setting in visual studio that allows you to 'compile as C'.

 

-Josh

1

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
Sign in to follow this  
Followers 0