Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » cc: cannot specify -o with -c or -S and multiple compilations

UBBFriend: Email this page to someone!    
Author Topic: cc: cannot specify -o with -c or -S and multiple compilations
pkishor
Junior Member
Member # 408

posted April 20, 2002 11:04 PM      Profile for pkishor        Edit/Delete Post  Reply With Quote 
That's the summary of the message... I am trying to compile a program. The program compiles fine, but it also has another sub-program, actually a PHP module sitting in a sub-directory. That's the one that croaks with the above message. The full message is like so...

cd mapscript/php3; make; cd ../..
cc cc -I. -I.. -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/Users/pkishor/Projects/mapserver_3.5 -I/usr/local/include -I/Users/pkishor/Projects/php-4.0.6 -I/Users/pkishor/Projects/php-4.0.6/dl -I/Users/pkishor/Projects/php-4.0.6/main -I/Users/pkishor/Projects/php-4.0.6/Zend -I/Users/pkishor/Projects/php-4.0.6/include -I/Users/pkishor/Projects/php-4.0.6/TSRM -I/usr/local/apache/include -c -o php_mapscript_util.o php_mapscript_util.c
cc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [php_mapscript_util.o] Error 1

What to do?

Tia.


Posts: 1 | Registered: Apr 2002  |  IP: Logged
apex
Administrator
Member # 1

posted April 22, 2002 11:10 AM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
Remove -c.
Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
CraigS
Junior Member
Member # 481

posted July 30, 2002 07:30 PM      Profile for CraigS     Send New Private Message      Edit/Delete Post  Reply With Quote 
remove the -o php_mapscript_util.o from the build
line. -c tells the compiler to build a .o file that is not bound to any libraries. By removing -c, you would be creating a bound (executable) program.

Posts: 1 | Registered: Jul 2002  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2