*** Yruama_Lairba has quit IRC | 01:27 | |
*** son0p has joined #lv2 | 01:36 | |
*** son0p has quit IRC | 01:37 | |
*** ssj71 has quit IRC | 02:03 | |
*** deva has joined #lv2 | 08:41 | |
*** NickSB2 has joined #lv2 | 10:59 | |
*** m4l3z has joined #lv2 | 11:37 | |
*** Yruama_Lairba has joined #lv2 | 15:11 | |
*** Yruama_Lairba1 has joined #lv2 | 15:44 | |
*** Yruama_Lairba has quit IRC | 15:55 | |
*** Yruama_Lairba has joined #lv2 | 15:59 | |
Yruama_Lairba | hello,does somebody knows an IRC channel to ask help about C/C++ ? | 15:59 |
---|---|---|
rgareus | I don't really, but google + stackoverflow.com are usually very helpful | 16:00 |
rgareus | #lad (linux audio dev) occasionally discusses implementation issues. | 16:01 |
Yruama_Lairba | i prefer IRC channel because it faster, particularly for stupid beginner question | 16:03 |
Yruama_Lairba | maybe i ca ask you | 16:07 |
Yruama_Lairba | i have a warning "initialization discards const qualifier from pointer type" | 16:10 |
Yruama_Lairba | i'm trying to do "float* const delay_buffer = echo->delay_buffer;" where "echo->delay-buffer" is an array | 16:11 |
rgareus | perhaps you mean float const * delay_buffer; not float * const; ? | 16:14 |
rgareus | constant pointer to non-const data vs variable-pointer to constant data. | 16:14 |
rgareus | perhaps https://stackoverflow.com/questions/2316387/initialization-discards-qualifiers-from-pointer-target-type helps? | 16:16 |
Yruama_Lairba | i try this but i'm not convinced | 16:16 |
Yruama_Lairba | what ??? it removes my error, but it's not coherent with what i lerned about const keyword o_O | 16:17 |
rgareus | Yruama_Lairba: hard to say without a bit more context. (is the method "const", what is "echo"..) | 16:19 |
Yruama_Lairba | for me, "const" is applied to keyword on the left of it | 16:19 |
rgareus | yep | 16:20 |
rgareus | perhaps "echo" itself is const? | 16:21 |
rgareus | in which case echo->delay_buffer would also be const. | 16:23 |
rgareus | and you can use float * const * delay_buffer = echo->delay_buffer; // if you don't modify the pointer itself | 16:23 |
Yruama_Lairba | ouch, you are right, echo is const, i didn't see | 16:24 |
rgareus | void foo (Echo const * echo) { ... } | 16:25 |
rgareus | would explain this | 16:25 |
Yruama_Lairba | i removed the "const" :p, no more warning | 16:28 |
*** NickSB2 has quit IRC | 16:40 | |
*** NickSB2 has joined #lv2 | 16:57 | |
Yruama_Lairba | wow, just discovered something weird, i can't define a const from another const when compiling with gcc | 19:03 |
Yruama_Lairba | const int a = 1; const int b = a; give me an error o_O | 19:04 |
Yruama_Lairba | how do you do to debug a plugin ? | 19:36 |
Yruama_Lairba | i'm unable to run my plugin using jalv and gdb | 19:36 |
*** NickSB2 has quit IRC | 19:47 | |
*** NickSB2 has joined #lv2 | 20:23 | |
*** Yruama_Lairba has quit IRC | 20:46 | |
*** Yruama_Lairba has joined #lv2 | 20:46 | |
*** deva has quit IRC | 21:01 | |
*** m4l3z has quit IRC | 21:24 | |
ventosus | Yruama_Lairba: jackd -ddummy; jalv <URI> | 21:36 |
Yruama_Lairba | ventosus, thank, but it wasn't really my question | 21:42 |
Yruama_Lairba | my question was how to use gdb to debug a plugin | 21:42 |
ventosus | ah, there's a word missing in the command :( | 21:43 |
ventosus | jackd -ddummy; gdb --args jalv <URI> | 21:43 |
ventosus | gdb and real time execution is a bad idea, so start jack with its non-realtime dummy backend | 21:44 |
ventosus | and then run jalv in gdb | 21:44 |
Yruama_Lairba | wow, i was usinf gdb jalv --args | 21:44 |
ventosus | well, you need to give jalv your plugin's URI in any case | 21:45 |
ventosus | so it knows what plugin to load in the first place | 21:45 |
Yruama_Lairba | in fact i solved my problems without using gdb. | 21:48 |
Yruama_Lairba | i'm a very beginner with gdb, i need to learn everything | 21:49 |
*** NickSB2 has quit IRC | 22:13 | |
*** NickSB2 has joined #lv2 | 22:13 | |
*** NickSB2 has quit IRC | 23:04 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!