From: sudha krishna <sudha_k1975@yahoo.com>
To: "sox-devel@lists.sourceforge.net" <sox-devel@lists.sourceforge.net>
Subject: building sox library for Windows
Date: Tue, 22 Jul 2014 19:20:28 -0700 [thread overview]
Message-ID: <1406082028.12455.YahooMailNeo@web121206.mail.ne1.yahoo.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2539 bytes --]
Hi All,
I am writing a windows application, that needs Sox library.
I have been trying to build LibSoX.lib based on the sources for Version 14.4.1 and running into issues.
I am using Visual Studio, and used the Sox.soln file here: \sox-code-fb412eb21ecea7d73380ef854b743e8c35d33422\msvc10\SoX.soln.
After disabling the features that are not needed in \msvc10\soxconfig.h, I was able to build LibSoX.lib and SoX.exe.
msvc10\Debug\lib\LibSoX.lib, size is 2963 Kb.
msvc10\Debug\SoX.exe, size is 1401 Kb.
I tested the above SoX.exe, for doing sample rate conversion from 44.1K to 16K, it worked fine, with command below.
sox wave_file_correct.wav -b 16 recital.wav channels 1 rate 16k
But when I try to link the msvc10\Debug\lib\LibSoX.lib, size is 2963 Kb, with my application, ran into linker errors, for all the sox_* functions.
I am just puzzled, since the SoX.exe which is linking with the LibSoX.lib is working fine, why is that LibSoX.lib has undefined symbols for sox_* functions.
As an alternate option, can someone provide or point me to a link, which has pre-build LibSoX.lib library for Windows, that I can use.
Some of the linker errors listed below.
>wave_in_thread.obj : error LNK2028: unresolved token (0A0003D4) "extern "C" int __cdecl sox_flow_effects(struct sox_effects_chain_t *,int (__cdecl*)(enum sox_bool,void *),void *)" (?sox_flow_effects@@$$J0YAHPEAUsox_effects_chain_t@@P6AHW4sox_bool@@PEAX@Z2@Z) referenced in function "int __cdecl `anonymous namespace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
1>wave_in_thread.obj : error LNK2028: unresolved token (0A0003E4) "extern "C" int __cdecl sox_init(void)" (?sox_init@@$$J0YAHXZ) referenced in function "int __cdecl `anonymous namespace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
1>wave_in_thread.obj : error LNK2028: unresolved token (0A0003FE) "extern "C" int __cdecl sox_close(struct sox_format_t *)" (?sox_close@@$$J0YAHPEAUsox_format_t@@@Z) referenced in function "int __cdecl `anonymous namespace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
1>wave_in_thread.obj : error LNK2028: unresolved token (0A00041B) "extern "C" struct sox_effect_t * __cdecl sox_create_effect(struct sox_effect_handler_t const *)" (?sox_create_effect@@$$J0YAPEAUsox_effect_t@@PEBUsox_effect_handler_t@@@Z) referenced in function "int __cdecl `anonymous namespace'::sox_test_function3(void)" (?sox_test_function3@?A0x40915a7a@@$$FYAHXZ)
Thanks,
Krishna
[-- Attachment #1.2: Type: text/html, Size: 5487 bytes --]
[-- Attachment #2: Type: text/plain, Size: 362 bytes --]
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
[-- Attachment #3: Type: text/plain, Size: 158 bytes --]
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel
reply other threads:[~2014-07-23 2:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1406082028.12455.YahooMailNeo@web121206.mail.ne1.yahoo.com \
--to=sox-devel@lists.sourceforge.net \
--cc=sudha_k1975@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).