You didn't put a space before the /exports as in my post #14
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
You didn't put a space before the /exports as in my post #14
I am really sorry , I appreciate your help.The following is the info.
C:\Program Files (x86)\Microsoft Visual Studio 8\vc\bin>"C:\Program Files (x86)\
Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 8\vc\bin>dumpbin dynamixel.lib /e
xports
Microsoft (R) COFF/PE Dumper Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Looks like it's the 'infamous' c++ name mangling issue.
Try changing the extension of your source program from .cpp to .c and see if then compiles and links.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
Can you provide a link from where I can download the dynamixel library so I can have a look at it.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
I don't have VS2005 installed but I tried it with VS2012 and your test program compiles and links OK for me with no errors using the .h and .lib files from the provided site. I can only think that it must be a configuration parameter for your VS that is causing the problem.
I put the dynamixel files dynamixel.dll, dynamixel.lib and dynamixel.h in the folder c:\develop\dynamixel. In the link section of VS configuration under general settings I set Additional Library Directories to c:\develop\dynamixel. I made no other changes to the default settings for the linker section and it linked OK. To get it to compile in the c/c++ configuration section I set Additional Include Directories to c:\develop\dynamixel and under Configuration Properties General I set Character Set to Multi-Byte Character Set.
May I suggest that you start a new project from scratch, and just change the configuration settings mentioned above - changing the directory names to where your files are located.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
No. I've tried it using VS2012 under Windows 8.1 and the program compiles and links OK with no problems.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
Hum. Using your attached files I get the same error! However, replacing your dynamixel files with the ones I downloaded work OK and your test program compiles/links with no problems. So there seems to be a problem with the files you downloaded. I have attached a zip of the dynamixel files that compile/link OK for me (32 bit version).
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
The dynamixel files you downloaded are the x64 (64 bit) versions but you are trying to generate x86 (32 bit) code. That is why you are getting the link error. If you set the configuration options for VS to generate x64 code then the dynamixel files you have compile and link OK. If you set VS configuration options for x86 code (as yu have) then you should use the x86 version of dynamixel (the zipped version in my post #26).
The version of the SDK you use is related to the platform for which you are compiling (x64 or x86) and not the platform of the computer on which you have VS installed.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
It is still not able to debug and create a file for me. Could you please send me your project file that worked for you.
It gives me the following error :
'ConsoleApplication2.exe' (Win32): Loaded 'C:\ConsoleApplication2\Debug\ConsoleApplication2.exe'. Symbols loaded.
'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'ConsoleApplication2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
The program '[7492] ConsoleApplication2.exe' has exited with code -1073741701 (0xc000007b).
Oh, wait my VS was set to use the .dll for 64 bit again. It is working now. Thank you so much for your help. I appreciate it allot from the bottom of my heart.
Pleased to have been of help. As the issue is now fixed, perhaps you would mark this thread as resolved.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.