-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Failing on Windows (x64, Windows 10, VS 2015) #76
Comments
It looks like the hello world source set doesn't include opt.c. I don't
|
If you compile in debug mode, do you get an error message when you run it? |
Nope ... nothing. The same thing happens if I try to connect via the On Wed, Dec 16, 2015 at 4:43 AM, Nuno Guerreiro notifications@github.com
|
I wonder what On Wed, Dec 16, 2015 at 10:18 AM Mike Parsons notifications@github.com
|
I set up the debugger in Visual Studio and it breaks here (strlen.asm) [image: Inline image 1] On Wed, Dec 16, 2015 at 5:25 AM, Nuno Guerreiro notifications@github.com
|
Here is where the error occurs ... getting the strlen(current_time) [image: Inline image 1] On Wed, Dec 16, 2015 at 5:38 AM, Mike Parsons mike.r.parsons@gmail.com
|
Humm, that's weird. I just checked the documentation on MSDN and Note that |
It causes a segmentation fault and the program exits On Wed, Dec 16, 2015 at 6:43 AM, Nuno Guerreiro notifications@github.com
|
And what's the value of |
Error Reading Character Of Strings On Wed, Dec 16, 2015 at 9:32 AM, Nuno Guerreiro notifications@github.com
|
If you need a Windows Environment to test on ... just load up this Hands On Lab from Microsoft and it gives you a full blown remote Windows - Visual Studio 2015 environment all avilable from a web browser |
Sweet! |
@mikeptweet - I ran #include <time.h> at the top of http_response_cache.c. Can you try doing that and running again just to confirm? |
Opened #77 to fix it. Without the header, the current time is returns as negative and that causes ctime to return an invalid string. |
Adding time.h to fix error on Windows. Fixes #76
Bingo ... thanks a bunch :-) |
Happy to help :-)
|
"C:\Haywire\haywire.sln" (default target) (1) ->
"C:\Haywire\haywire_hello_world.vcxproj.metaproj" (default target) (4) ->
"C:\Haywire\haywire_hello_world.vcxproj" (default target) (7) ->
(Link target) ->
program.obj : error LNK2019: unresolved external symbol opt_config_init refer
enced in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_config_free refer
enced in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_args_free referen
ced in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_config_parse refe
renced in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_flag_bool referen
ced in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_flag_int referenc
ed in function main [C:\Haywire\haywire_hello_world.vcxproj]
program.obj : error LNK2019: unresolved external symbol opt_flag_string refer
enced in function main [C:\Haywire\haywire_hello_world.vcxproj]
C:\Haywire\builds\windows\debug\haywire_hello_world\haywire_hello_world.exe :
fatal error LNK1120: 7 unresolved externals [C:\Haywire\haywire_hello_world.vc
xproj]
The text was updated successfully, but these errors were encountered: