470,826 Members | 2,244 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,826 developers. It's quick & easy.

reference

Hi
this error:

Release/src/Devices/Joysticks.o: In function `CJoysticksManager::EnumAll()':
Joysticks.cpp:(.text+0x1b16): undefined reference to
`jsJoystick::jsJoystick(int)'
Joysticks.cpp:(.text+0x1bf2): undefined reference to
`jsJoystick::jsJoystick(int)'

and that definition:

void CJoysticksManager::EnumAll()
{
int i=0;
int iNumAxes = 0;
jsJoystick * pJoy = NULL;
SJoyInfo * pJStruct = NULL;
float * fCopyTab = NULL;

FreeJoyList();
pJoy = new jsJoystick(i);
So what am i doing wrong?
THANKS Michael
Jul 30 '06 #1
2 2015
Michael Sgier <sg***@nospam.chwrote:
Release/src/Devices/Joysticks.o: In function
`CJoysticksManager::EnumAll()': Joysticks.cpp:(.text+0x1b16):
undefined reference to `jsJoystick::jsJoystick(int)'
Joysticks.cpp:(.text+0x1bf2): undefined reference to
`jsJoystick::jsJoystick(int)'
void CJoysticksManager::EnumAll()
{
int i=0;
int iNumAxes = 0;
jsJoystick * pJoy = NULL;
SJoyInfo * pJStruct = NULL;
float * fCopyTab = NULL;

FreeJoyList();
pJoy = new jsJoystick(i);
So what am i doing wrong?
Looks like the compiler cannot find the constructor in 'jsJoystick',
which takes one argument of type 'int'. Make sure you have defined such
a constructor.

hth
--
jb

(reply address in rot13, unscramble first)
Jul 30 '06 #2
Jakob Bieling wrote:
Michael Sgier <sg***@nospam.chwrote:
>Release/src/Devices/Joysticks.o: In function
`CJoysticksManager::EnumAll()': Joysticks.cpp:(.text+0x1b16):
undefined reference to `jsJoystick::jsJoystick(int)'
Joysticks.cpp:(.text+0x1bf2): undefined reference to
`jsJoystick::jsJoystick(int)'
>void CJoysticksManager::EnumAll()
{
int i=0;
int iNumAxes = 0;
jsJoystick * pJoy = NULL;
SJoyInfo * pJStruct = NULL;
float * fCopyTab = NULL;

FreeJoyList();
pJoy = new jsJoystick(i);
So what am i doing wrong?

Looks like the compiler cannot find the constructor in 'jsJoystick',
which takes one argument of type 'int'.
Actually, it looks like the compiler does find it, but the linker doesn't.
Make sure you have defined such a constructor.
And linked against the object file or library that contains the defintion.

Jul 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Abe Frohnman | last post: by
4 posts views Thread by z_learning_tester | last post: by
13 posts views Thread by al.cpwn | last post: by
51 posts views Thread by Kuku | last post: by
27 posts views Thread by David W | last post: by
41 posts views Thread by Summercool | last post: by
275 posts views Thread by Astley Le Jasper | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.