[zeromq-dev] How to use a src/ new class belonging to a new file, inside a tests/ new test in libzmq ?

Laurent Alebarde l.alebarde at free.fr
Thu Sep 19 17:42:53 CEST 2013


Hi libzmq developpers,

I am doing some experiments, and I don't manage to figure out how to add 
tests in tests/ that use some class added in a new file in src/
I did add my files in the Makefile.am respectively in src/ and tests/

I obtain "was not declared in this scope" from the compiler.

In my research, I could see that all classes used in tests seems to be 
(hypothesis: class or struct name build with a "_t" suffix) 
zmq_pollitem_t and zmq_event_t both defined in include/zmq.h

FYI, searched by : find tests/  -regex ".*\.[ch]p*" -exec grep "_t " 
'{}' ';' | grep -v "zmq_msg_t" | grep -v size_t | grep -v uint32_t | 
grep -v uint8_t
and for each (e.g. zmq_pollitem_t) : find .  -regex ".*\.[ch]p*" -exec 
grep -l "zmq_pollitem_t" '{}' ';'

So, shall I add my class there too ? What is the "good" way to do it 
please ?

Cheers,


Laurent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130919/c0fb3165/attachment.htm>


More information about the zeromq-dev mailing list