View Single Post
  #8   Spotlight this post!  
Unread 19-03-2016, 11:51
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 203
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Send data from raspberry pi to roboRIO using c++

I tried adding the -I<ntcore/include> file but I am still getting an error:

Code:
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crtl.o: In function `_start': /build/glibc-H706YU/glibc-2.19/csu/../ports/sysdeps/arm/start.S:119: undefined reference to main `main' collect2: error: ld returned 1 exit status
this is what I used to compile:

g++ -std=c++0x -I<ntcore/include> -lntcore vision.cpp -o test_colour `pkg-config --cflags --libs opencv`

We think the reason is because it cannot find a main function even though we have a main function in vision.cpp

EDIT: when we added the library path, we forgot to source it to make the program see the lib path.

Thanks for your help!

Last edited by jreneew2 : 19-03-2016 at 11:55. Reason: Working now!