The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help: adhoc server compiling on debian.
02-13-2014, 01:09 PM (This post was last modified: 02-13-2014 11:57 PM by bibby.)
Post: #1
Need Help: adhoc server compiling on debian.
I've tried searching the forums and such but with no luck.

my cmakelists.txt this.

Code:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
# Above line indicates to Cmake that minimum version 2.8 is required.
# As you may have noted all lines beginning with hash symbol are treated as comments by Cmake.
SET(sampleName MyApp)
# In the above line we declared a variable sampleName and assigned it a value MyApp. We will make use of the same later.project(PrjMyApp)
# here we define the project or solution (for visual studio) name
# In following lines we try to find out the packages of additional libraries, if reqd. Here we are trying to locate PCL and mrpt library.
# u may replace the names by yours. Each such package should have a Cmake file in them, if not then we may have to manually define the paths.
# we Show that later.

# here we specify the additional include directories for the project. These files come in additional include directories option of VC++
# project.
# either the variable values from package like ${PCL_INCLUDE_DIRS} or absolute paths as shown in second and third line may be used.

include_directories("/home/adhoc")

add_executable (adhocpro main.c status.c user.c main.o status.o user.o config.h packets.h pspstructs.h status.h user.h)




I get the following error.
Code:
adhoc/main.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [adhocpro] Error 1
make[1]: *** [CMakeFiles/adhocpro.dir/all] Error 2
make: *** [all] Error 2


please help.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Need Help: adhoc server compiling on debian. - bibby - 02-13-2014 01:09 PM

Forum Jump: