Skip to content

Commit

Permalink
fix: fix reference to 'option' is ambiguous
Browse files Browse the repository at this point in the history
When compiling examples with g++7.5 on Ubuntu18.04, an error occurs:
  examples/cpp/dds/HelloWorldExampleTCP/HelloWorld_main.cpp:36:21: error: reference to 'option' is ambiguous

Signed-off-by: jason_w <[email protected]>
  • Loading branch information
MambaWong committed Jul 10, 2024
1 parent 13f3003 commit f16ce5c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/cpp/dds/HelloWorldExampleTCP/HelloWorld_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

namespace option = eprosima::option;

using eprosima::fastrtps::Domain;

struct Arg : public option::Arg
{
static void print_error(
Expand Down Expand Up @@ -105,8 +107,6 @@ struct Arg : public option::Arg

};



enum optionIndex
{
UNKNOWN_OPT,
Expand Down Expand Up @@ -169,9 +169,6 @@ const option::Descriptor usage[] = {
{ 0, 0, 0, 0, 0, 0 }
};

using namespace eprosima;
using namespace fastrtps;
using namespace rtps;
int main(
int argc,
char** argv)
Expand Down

0 comments on commit f16ce5c

Please sign in to comment.