Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6982879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:20:46+00:00 2026-05-27T18:20:46+00:00

I am trying to compile a C library for genetic programming called lil-gp .

  • 0

I am trying to compile a C library for genetic programming called lil-gp.

I do not know if this kind of questions are appropriate to ask here but i am seeking serious help about this.

The makefile resides under the directory lilgp1.1/1.1/kernel and named as GNUmakefile.kernel. And it looks like this:

kobjects = main.o gp.o eval.o tree.o change.o crossovr.o reproduc.o \
    mutate.o select.o tournmnt.o bstworst.o fitness.o genspace.o \
    exch.o populate.o ephem.o ckpoint.o event.o pretty.o individ.o \
    params.o random.o memory.o output.o

kheaders = event.h defines.h types.h protos.h protoapp.h

.PHONY : all clean

LIBS += -lm
CFLAGS += -I. -I$(KERNELDIR) 

all : $(TARGET)

lilgp.h = $(addprefix $(KERNELDIR)/,$(kheaders)) $(uheaders)

$(kobjects) : %.o : $(KERNELDIR)/%.c
    $(CC) -c $(CFLAGS) $< -o $@

$(uobjects) : %.o : %.c
    $(CC) -c $(CFLAGS) $< -o $@

$(kobjects) $(uobjects) : $(lilgp.h)

$(TARGET) : $(kobjects) $(uobjects)
    $(CC) $(LFLAGS) -o $@ $^ $(LIBS) 

clean :
    \rm -f $(kobjects) $(uobjects) core

As a first move I followed these steps:

  1. I renamed it as Makefile
  2. Second i moved all : $(TARGET) just above to the clean: ...

But GNU make complains me that :

make: *** No rule to make target `/main.c', needed by `main.o'.  Stop.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:20:47+00:00Added an answer on May 27, 2026 at 6:20 pm

    Simple answer: read the documentation that’s included in the package (especially chapters 3 and 6).

    Longer answer: if you would have read the documentation, you would have known that you’re not supposed to use GNUmakefile.kernel directly. You need to choose one of the sample apps in the package and run make in its directory. Each one of the apps directories contains a (short) GNUmakefile that includes GNUmakefile.kernel.
    Alternatively, you can implement your own problem, by providing your own top level Makefile.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

why am i getting this LNK error when trying to compile this rsa library:
I am just trying to compile this simple example : http://msdn.microsoft.com/en-us/library/ms533895(VS.85).aspx what needs to
I'm trying to compile the sorting library from http://www.yendor.com/programming/sort/ Direct Link to library: http://www.yendor.com/programming/sort/sort-all.tgz
I'm trying to compile the following simple DL library example code from Program-Library-HOWTO with
I'm trying to compile a third-party library, but g++ is complaining about the following
I am trying to compile a slight part of second life library. Specifically, it
I was recently fighting some problems trying to compile an open source library on
I am trying to learn the wxWidgets library, using MinGW and msys to compile
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
I am trying to compile facebook library for my iphone application. But I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.