[srslte-users] Problem compiling own srsLTE-based program

Vasil Velichkov vvvelichkov at gmail.com
Sun Jun 10 16:26:36 UTC 2018


Hi Johannes,

> (.text+0x20): undefined reference to `main'

It does not find the main function because it does not compile the .c file.

> pdsch_listener:
>
> $(CC) $(WARN) $(CFLAGS) -o pdsch_listener $(INCLUDES)

And it does not compiles it because you need to specify it.  Try with

     $(CC) $(WARN) $(CFLAGS) $(INCLUDES) -o pdsch_listener pdsch_listener.c

Regards,
Vasil

On 10.06.2018 19:07, Johannes Becker wrote:
> Hi all,
>
> I am starting to read up on srsLTE as I will need it for a research 
> project.
>
> I successfully installed srsLTE on my system. Now I copied the 
> pdsch_ue.c from the /lib/examples directory into my own project 
> directory, in order to play around with it and use it as a starting 
> point for my own paging message listener.
>
> However, the Makefile I build (I inspected some of the CMake logic to 
> find out the right includes that are needed) doesn't seem to be right.
>
> Please find my Makefile as well as the resulting output here:
> https://gist.github.com/jkbecker/48883aebf9a2c7ab9f7e01af437f3c5e
> At this point, even though I renamed the file pdsch_listener, the 
> content (and therefore include dependencies) are exactly the same as 
> for https://github.com/srsLTE/srsLTE/blob/master/lib/examples/pdsch_ue.c .
> Any help on why this doesn't compile as intended is very much appreciated.
>
> Best regards
>
> Johannes Becker
>
>
> 	
> *Johannes K Becker*
> Boston University | PhD Student
> jkbecker at bu.edu <mailto:jkbecker at bu.edu>+1-857-919-4168 
> <tel:+1-857-919-4168>
>
>
>
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180610/5bbdb234/attachment.htm>


More information about the srsran-users mailing list