Skip to content
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

Fix the example provided in README to compile and run #2

Merged
merged 1 commit into from
Oct 10, 2014
Merged

Fix the example provided in README to compile and run #2

merged 1 commit into from
Oct 10, 2014

Conversation

kaworu
Copy link
Contributor

@kaworu kaworu commented Oct 10, 2014

I've tested the patched example this way:

  • building librdns
% mkdir build && cd build && cmake .. && make
  • building the example from README
% vim test.c
% cc -g -c -I /usr/local/include -I ../include test.c
% cc -g test.o librdns_static.a -L /usr/local/lib -lev
  • Finally launching the test:
% ./a.out ::1 53      
got result for host: google.com
got result for host: github.com
got result for host: www.ник.рф
got result for host: kernel.org
got result for host: freebsd.org
%

For info:

% uname -a
FreeBSD kaworu.ch 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9 #0: Mon Sep 15 14:35:52 UTC 2014     [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
% cc --version
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix

@kaworu kaworu changed the title Fix the example provided in README to compile and work. Fix the example provided in README to compile and run Oct 10, 2014
vstakhov added a commit that referenced this pull request Oct 10, 2014
Fix the example provided in README to compile and run
@vstakhov vstakhov merged commit 5d3d95e into vstakhov:master Oct 10, 2014
@kaworu kaworu deleted the fix-usage-example-in-README.md branch October 11, 2014 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants