Hello!
This code works for me:
EpConfig ep_cfg;
02.10.2016, 20:10, "Hermann Norpois" <hnorpois@xxxxxxxxx>:
,Hello,I am unable to define a stunserver. After running
make
cc -o myapp myapp.cpp `pkg-config --cflags --libs libpjproject`
myapp.cpp: In function 'int main()':
myapp.cpp:58:22: error: expected ';' before '{' token
ua_cfg.stunServer{"pjsip.org"};
^
make: *** [myapp] Error 1This is my code:
// Start the library (worker threads etc)try {
ep.libStart();
} catch(Error& err) {
std::cout << "Startup error: " << err.info() << std::endl;
}
// UaConfig
UaConfig ua_cfg;
ua_cfg.stunServer{"pjsip.org"};ua_cfg.stunServer is defined as stringvector. Isnt this the correct syntax for stringvector according c++11 upwards?
This is my compiler:
lrwxrwxrwx 1 root root 16 Sep 3 19:22 /usr/bin/g++ -> /usr/bin/g++-4.9Could anybody give me a hint?ThanksHermann_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
С уважением,
Александр Анцев
Александр Анцев
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org