You're right on "strays": I erased and rewrote DBG(),
but there is an error too:
first.c: In function ‘main’:
first.c:28:1: warning: implicit declaration of function ‘DBG’
[-Wimplicit-function-declaration]
DBG("...message..." , result);
^
/tmp/cc2lNDFo.o: in function "main":
first.c:(.text+0x67): undefined reference to "DBG"
collect2: error: ld returned 1 exit status
Thank you.
________________________________
> Date: Thu, 1 Jan 2015 17:40:20 -0500
> Subject: Re: [TrouSerS-users] DBG() - Compilation errors
> From: [email protected]
> To: [email protected]
>
> I think there is a stray "return" in the macro you have to delete, if
> you just copied from the pdf.
>
> On Thu, Jan 1, 2015 at 3:09 PM, Massimo Gaggiano
> <[email protected]<mailto:[email protected]>> wrote:
> Hello TrouSerS-users,
> I included <trousers/trousers.h> in my code and tried to use
> "DBG("...message...", result)", but I got these compilation errors:
>
> first.c:29:1: warning: implicit declaration of function ‘DBG’
> [-Wimplicit-function-declaration]
> DBG(“...message...”, result);
> ^
> first.c:29:1: error: stray ‘\342’ in program
> first.c:29:1: error: stray ‘\200’ in program
> first.c:29:1: error: stray ‘\234’ in program
> first.c:29:8: error: expected expression before ‘...’ token
> DBG(“...message...”, result);
> ^
> first.c:29:8: error: stray ‘\342’ in program
> first.c:29:8: error: stray ‘\200’ in program
> first.c:29:8: error: stray ‘\235’ in program
>
> Any suggestions?
> Thank you.
>
>
> ------------------------------------------------------------------------------
>
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> TrouSerS-users mailing list
> [email protected]<mailto:[email protected]>
>
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users