Hi, I am having this trouble when trying to build my hello project in VS 2010
on Windows 7. I am using pocketsphinx-0.7 and sphinxbase-0.7 which both
install correctly and pocketsphinx_continuous runs fine in terminal. My hello
code is exactly as the tutorial and when I build it in VS2010, it gives the
these following errors:
Error 11 error LNK1120: 9 unresolved externals C:\Users\User\documents\visual
studio 2010\Projects\hello\Debug\hello.exe hello
Error 9 error LNK2019: unresolved external symbol __imp__cmd_ln_init
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 10 error LNK2019: unresolved external symbol __imp__ps_args referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 7 error LNK2019: unresolved external symbol __imp__ps_decode_raw
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 3 error LNK2019: unresolved external symbol __imp__ps_end_utt referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 2 error LNK2019: unresolved external symbol __imp__ps_free referenced in
function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 6 error LNK2019: unresolved external symbol __imp__ps_get_hyp referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 8 error LNK2019: unresolved external symbol __imp__ps_init referenced in
function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 4 error LNK2019: unresolved external symbol __imp__ps_process_raw
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 5 error LNK2019: unresolved external symbol __imp__ps_start_utt
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Warning 1 warning LNK4042: object specified more than once; extras ignored
C:\Users\User\documents\visual studio
2010\Projects\hello\hello\Debug\hello.obj 1 1 hello
Could anyone help please?
Thank you in advance!
Teddy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I managed to fix the problem. It was related to linking the .lib files as well
as adding in the additional library directories.
I had another problem arise when I ran my program using "Start Debugging"
which gave me these outputs:
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\Debug\hello.exe', Symbols loaded.
'hello.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\hello\pocketsphinx.dll', Symbols loaded.
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\hello\sphinxbase.dll', Cannot find or open the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB
file
'hello.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'hello.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the
PDB file
The program ' hello.exe: Native' has exited with code 0 (0x0).
If I ran the program using "Start without Debugging", then the command window
pops up and opens the audio file and returning the results. Could anyone
please tell me what these outputs mean or how I can make them disappear?
Thank you in advance!
Teddy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I ran the program using "Start without Debugging", then the command
window pops up and opens the audio file and returning the results
The application runs successfully in debug mode too. Most likely it doesn't
show you the output because you did not put breakpoints in the program and you
did not configure it to start as a command line application
Could anyone please tell me what these outputs mean
Those are too generic questions on how to use Visual Studio and how to develop
C/C++ applications. You can easily find an answer on this quesion in MSDN.
MSDN is an excellent information source for the developers, I suggest you to
learn to use it.
Hi, I am having this trouble when trying to build my hello project in VS 2010
on Windows 7. I am using pocketsphinx-0.7 and sphinxbase-0.7 which both
install correctly and pocketsphinx_continuous runs fine in terminal. My hello
code is exactly as the tutorial and when I build it in VS2010, it gives the
these following errors:
Error 11 error LNK1120: 9 unresolved externals C:\Users\User\documents\visual
studio 2010\Projects\hello\Debug\hello.exe hello
Error 9 error LNK2019: unresolved external symbol __imp__cmd_ln_init
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 10 error LNK2019: unresolved external symbol __imp__ps_args referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 7 error LNK2019: unresolved external symbol __imp__ps_decode_raw
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 3 error LNK2019: unresolved external symbol __imp__ps_end_utt referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 2 error LNK2019: unresolved external symbol __imp__ps_free referenced in
function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 6 error LNK2019: unresolved external symbol __imp__ps_get_hyp referenced
in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 8 error LNK2019: unresolved external symbol __imp__ps_init referenced in
function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 4 error LNK2019: unresolved external symbol __imp__ps_process_raw
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Error 5 error LNK2019: unresolved external symbol __imp__ps_start_utt
referenced in function _main C:\Users\User\documents\visual studio
2010\Projects\hello\hello\hello.obj hello
Warning 1 warning LNK4042: object specified more than once; extras ignored
C:\Users\User\documents\visual studio
2010\Projects\hello\hello\Debug\hello.obj 1 1 hello
Could anyone help please?
Thank you in advance!
Teddy
I managed to fix the problem. It was related to linking the .lib files as well
as adding in the additional library directories.
I had another problem arise when I ran my program using "Start Debugging"
which gave me these outputs:
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\Debug\hello.exe', Symbols loaded.
'hello.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\hello\pocketsphinx.dll', Symbols loaded.
'hello.exe': Loaded 'C:\Users\User\Documents\Visual Studio
2010\Projects\hello\hello\sphinxbase.dll', Cannot find or open the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB
file
'hello.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open
the PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'hello.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the
PDB file
'hello.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the
PDB file
The program ' hello.exe: Native' has exited with code 0 (0x0).
If I ran the program using "Start without Debugging", then the command window
pops up and opens the audio file and returning the results. Could anyone
please tell me what these outputs mean or how I can make them disappear?
Thank you in advance!
Teddy
The application runs successfully in debug mode too. Most likely it doesn't
show you the output because you did not put breakpoints in the program and you
did not configure it to start as a command line application
Those are too generic questions on how to use Visual Studio and how to develop
C/C++ applications. You can easily find an answer on this quesion in MSDN.
MSDN is an excellent information source for the developers, I suggest you to
learn to use it.
http://social.msdn.microsoft.com/Forums/uk/vsdebug/thread/f2d31010-dc89-4290-
8869-11bf4a037ea0
Thank you nshmyrev. Now I understand why these messages appear. I will use
MSDN to learn more about VS and developing C/C++ apps.
Teddy