FYI: Code::Blocks is a C++ IDE!!where did I mention C# or basic? ???
It is NOT a VB or C# IDE.
Importing VB or C# projects was never supported!!
Tim S.
Apologies, I thought dsp was in C# or VB folder.Did you tried to import MS Visual Studio Project after you already imported and have opened Visual C++ project (.dsp).
I imported the dsp project and it gave errors/warning during importing; but, I saw no crash of CB.
I used Windows 7 32 bit and Code::Blocks 12.11
Tim S.
For me crash happens like that.Samples and steps to reproduce please, otherwise you producing forum noise and we cant help.
If I press "Keep this relative path"> Yes while adding library, then I get error ld.exe||cannot find -lVJoy.lib
If I press "Keep this relative path"> No while adding library, then I get following error :
obj\Debug\x\main.o||In function `main':|
\main.cpp|12|undefined reference to `_imp___Z15VJoy_InitializePcS_@8'|
\main.cpp|20|undefined reference to `_imp___Z19VJoy_UpdateJoyStateiP15_JOYSTICK_STATE@8'|
\main.cpp|22|undefined reference to `_imp___Z13VJoy_Shutdownv@0'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
Here is short video of how it happens : http://www.mediafire.com/download/q9ku3l755ynlwu5/crash2.7zFor me crash happens like that.Samples and steps to reproduce please, otherwise you producing forum noise and we cant help.
If I press "Keep this relative path"> Yes while adding library, then I get error ld.exe||cannot find -lVJoy.lib
If I press "Keep this relative path"> No while adding library, then I get following error :
obj\Debug\x\main.o||In function `main':|
\main.cpp|12|undefined reference to `_imp___Z15VJoy_InitializePcS_@8'|
\main.cpp|20|undefined reference to `_imp___Z19VJoy_UpdateJoyStateiP15_JOYSTICK_STATE@8'|
\main.cpp|22|undefined reference to `_imp___Z13VJoy_Shutdownv@0'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
Can you post the build log? Not the build Messages but the build log!
-------------- Build: Win32 Release in VJoy (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -o "...\VJoySDK\VJoy SDK\C++\Release\VJoy.exe" Release\StdAfx.o Release\VJoy.o -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32
Release\VJoy.o:VJoy.cpp:(.text.startup+0x1d): undefined reference to `_imp___Z15VJoy_InitializePcS_@8'
Release\VJoy.o:VJoy.cpp:(.text.startup+0x23): undefined reference to `_imp___Z13VJoy_Shutdownv@0'
Release\VJoy.o:VJoy.cpp:(.text.startup+0x79): undefined reference to `_imp___Z19VJoy_UpdateJoyStateiP15_JOYSTICK_STATE@8'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 0 warnings (0 minutes, 0 seconds)
check first post:
i think you miss VJoy.lib so, add it under Project->Build Options->Linker Settings
Add in Project->Build Options->Search Directories->Linker the path to the lib, and if it fails again post again the build log
thx
If I press "Keep this relative path"> Yes while adding library, then I get error ld.exe||cannot find -lVJoy.lib
If I press "Keep this relative path"> No while adding library, then I get following error :
obj\Debug\x\main.o||In function `main':|
\main.cpp|12|undefined reference to `_imp___Z15VJoy_InitializePcS_@8'|
\main.cpp|20|undefined reference to `_imp___Z19VJoy_UpdateJoyStateiP15_JOYSTICK_STATE@8'|
\main.cpp|22|undefined reference to `_imp___Z13VJoy_Shutdownv@0'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
Add in Project->Build Options->Search Directories->Linker the path
Can you post the build log? Not the build Messages but the build log!
If you succeded to build it, could you please upload zip of your project? also which compiler are you using?This was a general help, not specific to your problem...
#include "VJoy.h"
extern "C" {
#include "VJoy.h"
}