i got a code of 3D hanoy game (using opengl ,glut). when i try to run this game using VS 12 ,following errors
are showing ---
glutTimerFunc is undefined
glutInit is undefined
glutWindowSize is undefined
glPushMatrix is undefined
glRotatef is undefined
glTranslatef is undefined
glutSolidTorus is undefined
glPopMatirx is undefined
as i guess these problems are about missing functions , how can i add these functions in my code to run it ?
Follow this or this tutorial that introduces you to the basics of building an application using GLUT.
Hope it helps
Related
I am quite sure the answer is yes... but I would like to ensure.
My goal is to compile Samba 4.2.0 on a D-Link DNS-323, but my last error is:
default/source3/smbd/notify_inotify_75.o: In function `inotify_setup':
notify_inotify.c:(.text+0x984): undefined reference to `inotify_init'
default/source3/smbd/notify_inotify_75.o: In function `watch_destructor':
notify_inotify.c:(.text+0xe34): undefined reference to `inotify_rm_watch'
default/source3/smbd/notify_inotify_75.o: In function `inotify_watch':
notify_inotify.c:(.text+0xfd4): undefined reference to `inotify_add_watch'
notify_inotify.c:(.text+0x1150): undefined reference to `inotify_rm_watch'
notify_inotify.c:(.text+0x11ec): undefined reference to `inotify_rm_watch'
So, I think my only hope would be to compile a newer Kernel. Do I am right?
Unable to figure out why this error is showing up
Your problem is that you are trying to loop though the data object which is not a array. You can only use the forEach() function on arrays. In addition, the data object is undefined meaning that it does not exist.
Since I can not see all of your code, please check out this question Cannot read property 'forEach' of undefined on how to fix the undefined data object. If that still doesn't fix the problem, read up on the documentation for supertest.
I'm trying to port one DNS tool to Android that depends on libresolv (at least to my understanding).
So basically it looks like Android has libresolv (after android-21) since at least the headers are there. But when compiling I get a linker error
error: undefined reference to '__ns_parserr'
error: undefined reference to 'p_class'
error: undefined reference to 'p_type'
error: undefined reference to '__ns_name_uncompress'
error: undefined reference to '__ns_initparse'
error: undefined reference to '__ns_msg_getflag'
If I've understood correctly (https://en.wikipedia.org/wiki/Bionic_(software)) all those should be in libc, but for some reason they are not.
Any advise?
Oh BTW this is the thing I'm trying to port
https://github.com/verisign/dnscap/blob/master/dump_dns.c
Hope you can help, recently moved from jshint to eslint and Im looking to see how to get my tests to pass wihtout making changes;
Take for exmaple the following test
expect(ctrl.screens).to.not.be.undefined;
eshint complains with the following expection;
error Expected an assignment or function call and instead saw an expression no-unused-expressions
Changing the test to;
expect(ctrl.screens).to.not.be.undefined();
Gives the following error:
TypeError: '[object Object]' is not a function (evaluating 'expect(ctrl.screens).to.not.be.undefined()')
Any ideas what approach to take here? All the tests pass when I remove eshint from the task list so I need for some way to clean up these tests.
J
Testing for undefined is tricky. There are some alternative ways to do it. I normally check for typeof(variable) === 'undefined.
Example:
expect(typeof(ctrl.screens)).to.not.equal('undefined');
So I installed Code::Blocks with minGW v12.11 newest one. I can easly compile programs in debug mode but when I try release I get a lot of errors which i posted below. I would really appreciate reseponses.
obj\Release\koniec.o:koniec.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\koniec.o:koniec.cpp:(.eh_frame+0x43)||undefined reference to `__gxx_personality_v0'|
obj\Release\nowa_gra.o:nowa_gra.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\nowa_gra.o:nowa_gra.cpp:(.eh_frame+0x43)||undefined reference to `__gxx_personality_v0'|
obj\Release\pytania\pytanie_1.o:pytanie_1.cpp:(.text.startup+0xd5)||undefined reference to `_Unwind_Resume'|
obj\Release\pytania\pytanie_1.o:pytanie_1.cpp:(.eh_frame+0x9f)||undefined reference to `__gxx_personality_v0'|
obj\Release\pytania\pytanie_2.o:pytanie_2.cpp:(.text.startup+0xd5)||undefined reference to `_Unwind_Resume'|
obj\Release\pytania\pytanie_2.o:pytanie_2.cpp:(.eh_frame+0x9f)||undefined reference to `__gxx_personality_v0'|
obj\Release\pytania\pytanie_3.o:pytanie_3.cpp:(.text.startup+0xd5)||undefined reference to `_Unwind_Resume'|
obj\Release\pytania\pytanie_3.o:pytanie_3.cpp:(.eh_frame+0x9f)||undefined reference to `__gxx_personality_v0'|
obj\Release\tabela_wynikow.o:tabela_wynikow.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\tabela_wynikow.o:tabela_wynikow.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\tabela_wynikow.o:tabela_wynikow.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\tabela_wynikow.o:tabela_wynikow.cpp:(.eh_frame+0x43)||undefined reference to `__gxx_personality_v0'|
obj\Release\zapis.o:zapis.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\zapis.o:zapis.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\zapis.o:zapis.cpp|| undefined reference to `_Unwind_Resume'|
obj\Release\zapis.o:zapis.cpp:(.eh_frame+0x43)||undefined reference to `__gxx_personality_v0'|
||=== Build finished: 18 errors, 0 warnings (0 minutes, 0 seconds) ===|
The problem was i opened some old projects and that's why it bugged when I made a new one it compiled smoothly.